code: def check_exist_or_download(url):
      download_dir = "/tmp/"
      name = url.rsplit("/", 1)[-1]
      filename = os.path.join(download_dir, name)
      if not os.path.isfile(filename):
          logging.info("Downloading %s" % url)
          urllib.request.urlretrieve(url, filename)
      return filename
  
file_path: singa/examples/onnx/utils.py
imports: import os
  import urllib.request
  import tarfile
  import glob
  import onnx
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: check_exist_or_download(url) and returns: filename