code: def download_file_gdrive(
      id, output_directory, output_file_name, file_format=None
  ):
      """Download file/compressed file by Google Drive id.
  
      Args:
          id (string): Google Drive file id of the object to download
          output_directory (string, optional): Full path where object will be saved
                                               Abosolute path recommended. Relative path also works.
          output_file_name (string, optional): File name which object will be saved as
          file_format (string, optional): File format
                                  For compressed file, support ["tar.xz", "tar", "tar.gz", "tgz", "gz", "zip"]
  
      Example:
          >>> gdrive_id = "1U4D23R8u8MJX9KVKb92bZZX-tbpKWtga"
          >>> download_file_gdrive(gdrive_id, "data", "demo_datasets.zip", "zip")
  
          >>> gdrive_id = "1SV7fmAnWj-6AU9X5BGOrvGMoh2Gu9Nih"
          >>> download_file_gdrive(gdrive_id, "data", "dummy_data.csv", "csv")
      """
  
      output_directory = Path(output_directory).absolute()
      file = Path(output_directory).joinpath(output_file_name)
      if os.path.exists(file):
          logging.info("Skipping Download and Extraction")
          return
      os.makedirs(output_directory, exist_ok=True)
  
      logging.info("Downloading {}.".format(output_file_name))
      download_file_from_google_drive(
          id, output_directory, output_file_name
      )
  
      if file_format is not None and file_format in [
          "tar.xz",
          "tar",
          "tar.gz",
          "tgz",
          "gz",
          "zip",
      ]:
          logging.info("Extracting {}.".format(output_file_name))
          extract_archive(file.as_posix())
          logging.info(
              "Datasets downloaded and extracted in {}".format(file)
          )
      else:
          logging.info("Datasets downloaded in {}".format(file))
  
imports: import logging
  import os
  from pathlib import Path
  from torch.hub import download_url_to_file
  from torchvision.datasets.utils import download_and_extract_archive, download_file_from_google_drive, extract_archive
label_desc: Use image node_id 2 for calling a global function with example usage: download_file_gdrive(id, output_directory, output_file_name, file_format) without return types