input: from typing import List, Dict
  
  def extract_top_trending_videos(trending_url: str) -> List[Dict[str, str]]:
      """Extracts the titles and URLs of the top ten trending YouTube videos from a given trending URL.
      Returns a list of dictionaries where each dictionary contains 'title' and 'url' fields.
      >>> trending_videos = extract_top_trending_videos("https://www.youtube.com/feed/trending")
      >>> len(trending_videos)
      10
      >>> all('title' in video and 'url' in video for video in trending_videos)
      True
      """
      # make a request to get the page content
      page = requests.get(trending_url)
      
      # 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')
      
      # collect the top ten trending videos' titles and URLs
      top_ten_videos = []
      for video in trending_videos[:10]:
          title = video.find(class_='yt-uix-tile-link').get('title')
          url = "https://www.youtube.com" + video.find(class_='yt-uix-tile-link').get('href')
          top_ten_videos.append({'title': title, 'url': url})
      
      return top_ten_videos
output:     import requests
      from bs4 import BeautifulSoup