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 and parse the page content to extract the titles of the top ten trending videos. If the page content or the required elements are not found, the function should return an empty list.
  assert extract_top_trending_videos([])==True
output: 
  def extract_top_trending_videos():
      import requests
      from bs4 import BeautifulSoup
      url = "https://www.youtube.com/feed/trending"
      response = requests.get(url)
      if response.status_code != 200:
          return []
      soup = BeautifulSoup(response.text, 'html.parser')
      video_titles = []
      for title in soup.find_all('a', {'class': 'yt-simple-endpoint style-scope ytd-video-renderer'})[:10]:
          video_titles.append(title.get_text())
      return video_titles
  