input: from typing import List
  
  def extract_hotel_reviews(url: str, headers: dict) -> List[dict]:
      """Extracts hotel reviews from a TripAdvisor page given a URL and headers.
      Returns a list of dictionaries where each dictionary contains the title and text of a review.
      Example:
      >>> extract_hotel_reviews('<url>', {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'}) 
      [
          {"title": "Great stay!", "text": "We had a wonderful time at this hotel."},
          {"title": "Average experience", "text": "The room was clean but service was slow."}
      ]
      """
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