input: 
  from typing import List
  
  def extract_hotel_reviews(url: str, headers: dict) -> List[dict]:
      """ Extracts hotel reviews from the TripAdvisor website given the URL and headers for a request.
      The function returns a list of dictionaries where each dictionary contains the title and text of a review.
      >>> url = 'https://www.tripadvisor.com/Hotel_Review-g187147-d2334415'
      >>> headers = {'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'}
      >>> extract_hotel_reviews(url, headers)
      [{'title': 'Review Title 1', 'text': 'Review Text 1'}, {'title': 'Review Title 2', 'text': 'Review Text 2'}]
      """
      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'})
  
      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 to 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'})
  
      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 to list
          review_list.append({'title': title, 'text': text})
  
      return review_list