input: from typing import List
  
  
  def get_top_trending_videos() -> List[str]:
      """ Extract the top ten trending YouTube videos and return their titles in a list.
      >>> get_top_trending_videos()
      ['Title1', 'Title2', 'Title3', 'Title4', 'Title5', 'Title6', 'Title7', 'Title8', 'Title9', 'Title10']
      """
      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')
      
      # get the titles of the top ten trending videos
      titles = [video.find(class_='yt-uix-tile-link').get('title') for video in trending_videos[:10]]
      
      return titles
output:     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')
      
      # get the titles of the top ten trending videos
      titles = [video.find(class_='yt-uix-tile-link').get('title') for video in trending_videos[:10]]
      
      return titles