input: 
  from typing import List
  
  
  def extract_titles_from_youtube(url: str) -> List[str]:
      """Extract titles of all YouTube videos from a given URL.
      
      >>> extract_titles_from_youtube("https://www.youtube.com/user/Thexvid/videos")
      ['Title1', 'Title2', 'Title3']
      >>> extract_titles_from_youtube("https://www.youtube.com/user/AnotherChannel/videos")
      ['AnotherTitle1', 'AnotherTitle2']
      """
  
output:     
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      titles = [title.text for title in soup.find_all('a', class_='yt-simple-endpoint style-scope ytd-grid-video-renderer')]
      return titles
  