code: def to_google_drive_download_url(view_url: str) -> str:
      """
      Utility function to transform a view URL of google drive
      to a download URL for google drive
  
      Example input:
          https://drive.google.com/file/d/137RyRjvTBkBiIfeYBNZBtViDHQ6_Ewsp/view
  
      Example output:
          https://drive.google.com/uc?export=download&id=137RyRjvTBkBiIfeYBNZBtViDHQ6_Ewsp
      """
      splits = view_url.split("/")
      assert splits[-1] == "view"
      file_id = splits[-2]
      return f"https://drive.google.com/uc?export=download&id={file_id}"
  
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 2 for calling a global function with example usage: to_google_drive_download_url(view_url) and returns: str, file_id