input: Write a function to implement a web scraper in Python to extract the top ten trending YouTube videos.
  
  def get_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')
      
      # return the titles of the top ten trending videos
      return [video.find(class_='yt-uix-tile-link').get('title') for video in trending_videos[:10]]
  
  assert get_trending_videos()[:2] == ['Video Title 1', 'Video Title 2']
  assert len(get_trending_videos()) == 10
  assert isinstance(get_trending_videos()[0], str)
output: def get_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')
      
      # return the titles of the top ten trending videos
      return [video.find(class_='yt-uix-tile-link').get('title') for video in trending_videos[:10]]