input: from typing import List
  
  def extract_hotel_reviews(url: str, headers: dict) -> List[dict]:
      """
      Extract hotel reviews from a given TripAdvisor URL using web scraping.
      The function returns a list of dictionaries where each dictionary represents a review
      and contains two keys: 'title' and 'text'.
      >>> extract_hotel_reviews('<url>', {'User-Agent': 'Mozilla/5.0'})
      [{'title': 'Great hotel', 'text': 'We had a fantastic stay here!'}, {'title': 'Terrible experience', 'text': 'The staff was rude.'}]
      """
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.strip()
          text = review.find('p', class_='partial_entry').text.strip()
          reviews.append({'title': title, 'text': text})
  
      return reviews