input: from typing import List
  
  def extract_hotel_reviews(url: str) -> List[str]:
      """ Scrape hotel reviews from a given TripAdvisor URL and return a list of formatted review strings.
      Each string in the list should contain the title and text of the review separated by a line of 50 hyphens.
      >>> extract_hotel_reviews('https://www.tripadvisor.com/Hotel_Review-g60763-d1217770-Reviews-Hotel_Recamier-Paris_Ile_de_France.html')
      ['Very nice stay at Hotel Recamier\\nMy husband and I spent three nights at Hotel Recamier and it was a wonderful experience. The location is perfect, right in the heart of Saint-Germain-des-Prés...\\n--------------------------------------------------', ...]
      """
      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 = soup.find_all('div', {'class': 'review-container'})
      review_texts = []
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          review_texts.append(f'{title}\\n{text}\\n{"-" * 50}')
      return review_texts
output:     import requests
      from bs4 import BeautifulSoup