input: from typing import List
  
  def extract_hotel_reviews_from_tripadvisor(url: str, headers: dict) -> List[dict]:
      """
      Scrapes and extracts hotel reviews from the given TripAdvisor URL using BeautifulSoup.
      It returns a list of dictionaries where each dictionary represents a review, containing
      the title and the text of the review.
      
      >>> url = 'https://www.tripadvisor.com/Hotel_Review-g60763-d122047-Reviews-The_Helmsley_Park_Lane-New_York_City_New_York.html'
      >>> headers = {'User-Agent': 'Mozilla/5.0'}
      >>> extract_hotel_reviews_from_tripadvisor(url, headers)
      [{'title': 'Great Stay', 'text': 'We had a wonderful time at the hotel.'}, {'title': 'Good Service', 'text': 'The staff was very friendly.'}]
      """
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
          text = review.find('p', class_='partial_entry').text
          reviews.append({'title': title, 'text': text})
  
      return reviews