code: def download_google_drive_url(
      url: str, output_path: str, output_file_name: str
  ):
      """
      Download a file from google drive
  
      Downloading an URL from google drive requires confirmation when
      the file of the size is too big (google drive notifies that
      anti-viral checks cannot be performed on such files)
      """
      import requests
  
      with requests.Session() as session:
          # First get the confirmation token and append it to the URL
          with session.get(
              url, stream=True, allow_redirects=True
          ) as response:
              for k, v in response.cookies.items():
                  if k.startswith("download_warning"):
                      url = url + "&confirm=" + v
  
          # Then download the content of the file
          with session.get(url, stream=True, verify=True) as response:
              makedir(output_path)
              path = os.path.join(output_path, output_file_name)
              total_size = int(
                  response.headers.get("Content-length", 0)
              )
              with open(path, "wb") as file:
                  from tqdm import tqdm
  
                  with tqdm(total=total_size) as progress_bar:
                      for block in response.iter_content(
                          chunk_size=io.DEFAULT_BUFFER_SIZE
                      ):
                          file.write(block)
                          progress_bar.update(len(block))
  
file_path: vissl/vissl/utils/download.py
imports: import io
  import os
  import re
  import urllib
  import urllib.error
  import urllib.request
  from typing import Optional
  from urllib.parse import urlparse
  from torch.utils.model_zoo import tqdm
  from torchvision.datasets.utils import check_integrity, download_file_from_google_drive, extract_archive
  from vissl.utils.io import makedir
label_desc: Use image node_id 3 for calling a global function with example usage: download_google_drive_url(url, output_path, output_file_name) without return types