input: Write a function to implement a web scraper in Python that extracts the top ten trending YouTube videos. The function should make a request to the YouTube trending page, parse the page content using BeautifulSoup, and extract and print the titles of the top ten trending videos. If the trending videos are found, the function should return the titles as a list.
  
  def extract_top_trending_videos():
      import requests
      from bs4 import BeautifulSoup
  
      # make a request to get the page content
      page = requests.get("https://www.youtube.com/feed/trending")
  
      # parse the page content
      soup = BeautifulSoup(page.content, 'html.parser')
  
      # extract the list of trending videos
      trending_videos = soup.find_all(class_='expanded-shelf-content-item-wrapper')
  
      # extract and print the titles of the top ten trending videos
      top_ten_titles = []
      for video in trending_videos[:10]:
          title = video.find(class_='yt-uix-tile-link').get('title')
          top_ten_titles.append(title)
  
      return top_ten_titles
  
  assert extract_top_trending_videos() is not None
  assert len(extract_top_trending_videos()) == 10
output: def extract_top_trending_videos():
      import requests
      from bs4 import BeautifulSoup
  
      page = requests.get("https://www.youtube.com/feed/trending")
      soup = BeautifulSoup(page.content, 'html.parser')
      trending_videos = soup.find_all(class_='expanded-shelf-content-item-wrapper')
  
      top_ten_titles = []
      for video in trending_videos[:10]:
          title = video.find(class_='yt-uix-tile-link').get('title')
          top_ten_titles.append(title)
  
      return top_ten_titles