input: 
  def scrape_tripadvisor_reviews(url: str) -> List[dict]:
      """Scrape hotel reviews from TripAdvisor and return a list of dictionaries
      with the title and text of each review.
      >>> scrape_tripadvisor_reviews('https://www.tripadvisor.com/Hotel_Review-g60763-d123456-Reviews-Example_Hotel-New_York_City_New_York.html')
      [
          {'title': 'Great Stay', 'text': 'Loved the service and the view.'},
          {'title': 'Average Experience', 'text': 'The room was clean but the staff was not very friendly.'}
      ]
      """
      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'}
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.text, '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
  
output:     import requests
      from bs4 import BeautifulSoup