input: from typing import List
  
  def scrape_hotel_reviews(url: str, headers: dict) -> List[dict]:
      """ Scrape hotel reviews from TripAdvisor using the given URL and headers.
      Each review should be stored as a dictionary with keys 'title' and 'text'.
      >>> scrape_hotel_reviews('<url>', {'User-Agent': 'Mozilla/5.0'})  # Use a real TripAdvisor URL
      [{'title': 'Great Stay', 'text': 'The hotel offers amazing services.'}, {'title': 'Worst Experience', 'text': 'The staff was unfriendly and the room was dirty.'}]
      """
output:     import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      reviews = []
      for review in soup.find_all('div', class_='review-container'):
          title = review.find('span', class_='noQuotes').text
          text = review.find('p', class_='partial_entry').text
          reviews.append({'title': title, 'text': text})
  
      return reviews