code: def do_download(dirpath, gzfile, url):
      print("Downloading CIFAR from %s" % (url))
      urllib.request.urlretrieve(url, gzfile)
      extract_tarfile(gzfile)
      print("Finished!")
  
file_path: singa/examples/cnn/data/download_cifar10.py
imports: from __future__ import print_function
  from future import standard_library
  import urllib.request, urllib.parse, urllib.error
  import tarfile
  import os
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: do_download(dirpath, gzfile, url) without return types