def is_youtube_video(url: str) -> bool:
    """
    Returns whether the passed in `url` matches the various YouTube URL formats.
    """
    for pattern in YOUTUBE_URL_PATTERNS:
        if re.search(pattern, url):
            return True
    return False

    Returns whether the passed in `url` matches the various YouTube URL formats.
    
llama-index-integrations/readers/llama-index-readers-youtube-transcript/llama_index/readers/youtube_transcript/utils.py