input: Write a function to create a web scraper in Python that extracts the top ten trending YouTube videos. The function should make a request to the trending page, parse the content using BeautifulSoup, and return the titles of the top ten trending videos. If the page content cannot be fetched, the function should return an empty list.
  assert youtube_trending_scraper() == [
      "Title 1",
      "Title 2",
      "Title 3",
      "Title 4",
      "Title 5",
      "Title 6",
      "Title 7",
      "Title 8",
      "Title 9",
      "Title 10"
  ]
  assert youtube_trending_scraper() == []  # If the page cannot be fetched
output: def youtube_trending_scraper():
      try:
          response = requests.get('https://www.youtube.com/feed/trending')
          if response.status_code != 200:
              return []
          soup = BeautifulSoup(response.content, 'html.parser')
          titles = [title.text for title in soup.find_all('a', {'id': 'video-title'})[:10]]
          return titles
      except:
          return []