input: from typing import List
  
  def extract_reviews(url: str, headers: dict) -> List[dict]:
      """ Extracts hotel reviews from a given TripAdvisor URL. Returns a list of dictionaries where
      each dictionary contains the title and text of a review.
      >>> extract_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': 'The service was excellent.'}, {'title': 'Average', 'text': 'Could be better.'}]
      """
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