input: Write a function to scrape the top ten trending YouTube videos using Python. The function should make a request to get the page content, parse the content, extract the list of trending videos, and print the titles of the top ten trending videos. Provide the function with the necessary imports, annotations, and comments to make it clear and runnable. Return a list of the titles of the top ten trending videos.
  assert scrape_top_trending_videos() == ["Title1", "Title2", "Title3", "Title4", "Title5", "Title6", "Title7", "Title8", "Title9", "Title10"]
output: def scrape_top_trending_videos() -> list:
      import requests
      from bs4 import BeautifulSoup
      
      url = "https://www.youtube.com/feed/trending"
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      titles = []
      for video in soup.find_all('a', {'id': 'video-title'})[:10]:
          titles.append(video.get_text(strip=True))
      
      return titles