input: from typing import List, Dict
  
  def extract_hotel_reviews(url: str, headers: Dict[str, str]) -> List[Dict[str, str]]:
      """ Extracts hotel reviews from the given URL using the specified headers and 
      returns a list of dictionaries where each dictionary represents a review with
      keys 'title' and 'text'.
      >>> extract_hotel_reviews('<url>', {'User-Agent': 'Custom Agent'})
      [{'title': 'Great Stay', 'text': 'The staff was very friendly and the room was clean.'}, {'title': 'Excellent Service', 'text': 'The hotel exceeded my expectations.'}]
      """
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'):
          title = review.find('h3', class_='review-title').text.strip()
          text = review.find('p', class_='review-text').text.strip()
          reviews.append({'title': title, 'text': text})
  
      return reviews