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 YouTube's trending page, parse the content, and return the titles of the top ten trending videos. If there are no videos found or less than ten videos, return an empty list.
  assert scrape_trending_videos()==['Video Title 1', 'Video Title 2', 'Video Title 3', 'Video Title 4', 'Video Title 5', 'Video Title 6', 'Video Title 7', 'Video Title 8', 'Video Title 9', 'Video Title 10']
  assert scrape_trending_videos()==[]
output: def scrape_trending_videos():
      import requests
      from bs4 import BeautifulSoup
      
      url = "https://www.youtube.com/feed/trending"
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      video_titles = []
      for title in soup.find_all('a', {'class': 'yt-simple-endpoint style-scope ytd-video-renderer'}):
          video_titles.append(title.text.strip())
          if len(video_titles) == 10:
              break
      
      return video_titles if len(video_titles) == 10 else []