code: def extract_tarfile(filepath):
      if os.path.exists(filepath):
          print("The tar file does exist. Extracting it now..")
          with tarfile.open(filepath, "r") as f:
              f.extractall("/tmp/")
          print("Finished!")
          sys.exit(0)
  
file_path: singa/examples/cifar_distributed_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 1 for calling a global function with example usage: extract_tarfile(filepath) without return types