input: Write a function to create a web scraper in Python that can extract hotel reviews from TripAdvisor. The function should define the URL and headers, make a request to get the HTML, parse the HTML using BeautifulSoup, find all reviews, and extract and print the title and text of each review. If no reviews are found, the function should print "No reviews found."
  assert extract_tripadvisor_reviews("<url>") == None
  # Output may vary depending on the actual content of the URL, but the function should print the titles and texts of reviews if they are available on the page.
  assert extract_tripadvisor_reviews("<url_with_no_reviews>") == None
  # Output should print "No reviews found." if no reviews are present on the page.
output: def extract_tripadvisor_reviews(url):
      import requests
      from bs4 import BeautifulSoup
      
      headers = {'User-Agent': 'Mozilla/5.0'}
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.text, 'html.parser')
      
      reviews = soup.find_all('div', class_='review-container')
      
      if not reviews:
          print("No reviews found.")
      else:
          for review in reviews:
              title = review.find('span', class_='noQuotes').text
              text = review.find('p', class_='partial_entry').text
              print(f"Title: {title}\nText: {text}\n")