code: def download_url(url, folder, log=True):
      r"""Downloads the content of an URL to a specific folder.
      Args:
          url (string): The url.
          folder (string): The folder.
          log (bool, optional): If :obj:`False`, will not print anything to the
              console. (default: :obj:`True`)
      """
  
      filename = url.rpartition("/")[2]
      path = osp.join(folder, filename)
  
      if osp.exists(path) and osp.getsize(path) > 0:  # pragma: no cover
          if log:
              print("Using exist file", filename)
          return path
  
      if log:
          print("Downloading", url)
  
      makedirs(folder)
      data = ur.urlopen(url)
  
      size = int(data.info()["Content-Length"])
  
      chunk_size = 1024 * 1024
      num_iter = int(size / chunk_size) + 2
  
      downloaded_size = 0
  
      try:
          with open(path, "wb") as f:
              pbar = tqdm(range(num_iter))
              for i in pbar:
                  chunk = data.read(chunk_size)
                  downloaded_size += len(chunk)
                  pbar.set_description(
                      "Downloaded {:.2f} GB".format(
                          float(downloaded_size) / GBFACTOR
                      )
                  )
                  f.write(chunk)
      except:
          if os.path.exists(path):
              os.remove(path)
          raise RuntimeError("Stopped downloading due to interruption.")
  
      return path
  
file_path: ogb/ogb/utils/url.py
imports: import urllib.request
  import zipfile
  import os
  import os.path
  from six.moves import urllib
  import errno
  from tqdm.auto import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: download_url(url, folder, log) and returns: path, path