input: from typing import List
  
  def extract_hotel_reviews(url: str, headers: dict) -> List[dict]:
      """Extracts hotel reviews from a given TripAdvisor URL and returns them in a list of dictionaries.
      Each dictionary contains the review title and text.
      >>> extract_hotel_reviews('https://www.tripadvisor.com/Hotel_Review-g60763-d1218721-Reviews-The_London_Westin_Hotel-New_York_City_New_York.html', {'User-Agent': 'Mozilla/5.0'})
      [{'title': 'Great hotel', 'text': 'Very clean and comfortable.'}, {'title': 'Excellent service', 'text': 'Staff was very friendly and helpful.'}]
      """
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