input: from typing import List, Tuple
  
  def extract_reviews(url: str, headers: dict) -> List[Tuple[str, str]]:
      """Extract hotel reviews from a given TripAdvisor page URL.
      Returns a list of tuples where each tuple contains the title and text of a review.
  
      >>> url = 'https://www.tripadvisor.com/Hotel_Review-g187497-d2354892-Reviews-The_Peninsula_Paris-Paris_Ile_de_France.html'
      >>> headers = {'User-Agent': 'Mozilla/5.0'}
      >>> extract_reviews(url, headers)
      [('Amazing stay!', 'We had an incredible time at The Peninsula Paris.'), 
       ('Stellar service', 'The staff was extremely attentive and the room was immaculate.')]
      """
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.text, 'html.parser')
      reviews = soup.find_all('div', {'class': 'review-container'})
      extracted_reviews = []
  
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          extracted_reviews.append((title, text))
      
      return extracted_reviews
output:     import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.text, 'html.parser')
      reviews = soup.find_all('div', {'class': 'review-container'})
      extracted_reviews = []
  
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          extracted_reviews.append((title, text))
      
      return extracted_reviews