input: from typing import List
  
  def extract_hotel_reviews(url: str, headers: dict) -> List[dict]:
      """ Extract hotel reviews from a specified TripAdvisor URL. Each review is represented
      as a dictionary with keys 'title' and 'text'.
  
      >>> 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': 'Excellent stay', 'text': 'We had a great time at this hotel.'}, {'title': 'Good but not perfect', 'text': 'Overall a good experience, but room service was slow.'}]
      """
      import requests
      from bs4 import BeautifulSoup
  
      # Make a request and get HTML in response
      response = requests.get(url, headers=headers)
  
      # Parse HTML
      soup = BeautifulSoup(response.text, 'html.parser')
  
      # Find all reviews
      reviews = soup.find_all('div', {'class': 'review-container'})
  
      # Initialize a list to store the reviews
      review_list = []
  
      # Go through every review and extract the data
      for review in reviews:
          # Get the title
          title = review.find('span', {'class': 'noQuotes'}).text
  
          # Get the text
          text = review.find('p', {'class': 'partial_entry'}).text
  
          # Append the review as a dictionary to the list
          review_list.append({'title': title, 'text': text})
  
      return review_list
output:     import requests
      from bs4 import BeautifulSoup
  
      # Make a request and get HTML in response
      response = requests.get(url, headers=headers)
  
      # Parse HTML
      soup = BeautifulSoup(response.text, 'html.parser')
  
      # Find all reviews
      reviews = soup.find_all('div', {'class': 'review-container'})
  
      # Initialize a list to store the reviews
      review_list = []
  
      # Go through every review and extract the data
      for review in reviews:
          # Get the title
          title = review.find('span', {'class': 'noQuotes'}).text
  
          # Get the text
          text = review.find('p', {'class': 'partial_entry'}).text
  
          # Append the review as a dictionary to the list
          review_list.append({'title': title, 'text': text})
  
      return review_list