code: def _download_from_google_drive(url, filename, path):
      """Adapted from `https://github.com/saurabhshri/gdrive-downloader`"""
  
      def _get_confirm_token(response):
          for key, value in response.cookies.items():
              if key.startswith("download_warning"):
                  return value
          return None
  
      file_id = _extract_google_drive_file_id(url)
  
      gurl = "https://docs.google.com/uc?export=download"
      sess = requests.Session()
      response = sess.get(gurl, params={"id": file_id}, stream=True)
      token = _get_confirm_token(response)
  
      if token:
          params = {"id": file_id, "confirm": token}
          response = sess.get(gurl, params=params, stream=True)
  
      filepath = os.path.join(path, filename)
      CHUNK_SIZE = 32768
      with tf.gfile.GFile(filepath, "wb") as f:
          for chunk in response.iter_content(CHUNK_SIZE):
              if chunk:
                  f.write(chunk)
  
      print("Successfully downloaded {}.".format(filename))
  
      return filepath
  
file_path: texar/texar/tf/data/data_utils.py
imports: import os
  import sys
  import tarfile
  import zipfile
  import collections
  import numpy
  from six.moves import urllib
  import requests
  import tensorflow
  from texar.tf.utils import utils_io
label_desc: Use image node_id 4 for calling a global function with example usage: _download_from_google_drive(url, filename, path) and returns: filepath, None, value