input: Write a function to create a web scraper in Python that can extract hotel reviews from TripAdvisor. The function should make a request to the specified URL, parse the HTML using BeautifulSoup, find all review containers, and print the title and text of each review. If no reviews are found, it should handle the case gracefully.
  
  import requests
  from bs4 import BeautifulSoup
  
  def scrape_tripadvisor_reviews(url):
      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'})
      
      if not reviews:
          print("No reviews found.")
          return
      
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          print(title)
          print(text)
          print('-' * 50)
  
  assert scrape_tripadvisor_reviews('https://www.example.com/hotel') == None
  assert scrape_tripadvisor_reviews('https://www.example.com/no_reviews') == None
output: 
  def scrape_tripadvisor_reviews(url):
      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'})
      
      if not reviews:
          print("No reviews found.")
          return
      
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          print(title)
          print(text)
          print('-' * 50)
  