input: from typing import List
  
  def extract_hotel_reviews(url: str) -> List[str]:
      """Extracts hotel reviews from TripAdvisor given the URL of the hotel's reviews page.
      Returns a list of strings where each string contains a title and the corresponding text of a review.
      Each entry in the list is formatted as 'Title: {title}\nText: {text}'.
      
      Example:
      Given url = 'https://www.tripadvisor.com/Hotel_Review-g60763-d123456-Reviews-XYZ_Hotel-New_York_City_New_York.html'
      
      >>> extract_hotel_reviews('https://www.tripadvisor.com/Hotel_Review-g60763-d123456-Reviews-XYZ_Hotel-New_York_City_New_York.html')
      ['Title: Excellent stay\nText: We had a great time at XYZ Hotel...', 'Title: Needs improvement\nText: The service was slow and the rooms were not clean...', ...]
      """
output:     
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      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(f'Title: {title}\nText: {text}')
      
      return reviews
  