input: 
  from typing import List
  
  def extract_tripadvisor_reviews(url: str, headers: dict) -> List[dict]:
      """
      This function takes a URL and headers for a web request, scrapes TripAdvisor hotel reviews,
      and returns a list of dictionaries where each dictionary contains the title and text of a review.
      
      >>> extract_tripadvisor_reviews('<url_to_tripadvisor_page>', {'User-Agent': 'Mozilla/5.0'})
      [{'title': 'Excellent Experience!', 'text': 'We enjoyed our stay...'}, {'title': 'Average Hotel', 'text': 'It was okay...'}, ...]
      """
      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 an empty list to hold review data  
      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 title and text to the review 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 an empty list to hold review data  
      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 title and text to the review list  
          review_list.append({'title': title, 'text': text})  
      
      return review_list