input: from typing import List, Dict
  
  
  def extract_hotel_reviews(url: str, headers: Dict[str, str]) -> List[Dict[str, str]]:
      """ Extracts hotel reviews from the given TripAdvisor URL using web scraping.
      Returns a list of dictionaries, each containing the title and text of a review.
      >>> extract_hotel_reviews('https://www.tripadvisor.com/Hotel_Review-g60763-d121872-Reviews-The_Ritz_Carlton_New_York_Central_Park-New_York_City_New_York.html', {'User-Agent': 'Mozilla/5.0'})
      [{'title': 'Excellent Stay!', 'text': 'The service was impeccable and the rooms were very clean.'}, {'title': 'Great location', 'text': 'Close to all attractions and the staff was very friendly.'}]
      """
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.text, 'html.parser')
      reviews = soup.find_all('div', {'class': 'review-container'})
  
      review_data = []
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          review_data.append({'title': title, 'text': text})
      
      return review_data
output:     import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.text, 'html.parser')
      reviews = soup.find_all('div', {'class': 'review-container'})
  
      review_data = []
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          review_data.append({'title': title, 'text': text})
      
      return review_data