input: from typing import List
  
  def extract_hotel_reviews(url: str, headers: dict) -> List[dict]:
      """ Scrapes hotel reviews from TripAdvisor using the provided URL and HTTP headers.
      Returns a list of dictionaries, each containing the title and text of a review.
      >>> 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': 'Awesome stay', 'text': 'We had an amazing time at this hotel. The staff were very friendly and the rooms were clean and comfortable.'}, 
      {'title': 'Great location', 'text': 'The hotel is close to everything we wanted to visit. The breakfast was delicious.'}, 
      {'title': 'Disappointing experience', 'text': 'Our room had a bad smell and the service was slow. Not recommended.'}]
      """
      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')
  
      reviews = []
      # Find all reviews
      review_containers = soup.find_all('div', {'class': 'review-container'})
  
      # Go through every review and extract the data
      for review in review_containers:
          # Get the title
          title = review.find('span', {'class': 'noQuotes'}).text
  
          # Get the text
          text = review.find('p', {'class': 'partial_entry'}).text
  
          # Add to the list of reviews
          reviews.append({'title': title, 'text': text})
  
      return reviews
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')
  
      reviews = []
      # Find all reviews
      review_containers = soup.find_all('div', {'class': 'review-container'})
  
      # Go through every review and extract the data
      for review in review_containers:
          # Get the title
          title = review.find('span', {'class': 'noQuotes'}).text
  
          # Get the text
          text = review.find('p', {'class': 'partial_entry'}).text
  
          # Add to the list of reviews
          reviews.append({'title': title, 'text': text})
  
      return reviews