code: def untar(fname, path=""):
      if fname.endswith("tar.gz"):
          tar = tarfile.open(fname)
          tar.extractall(
              path=os.path.join(path, "/".join(fname.split("/")[:-1]))
          )
          tar.close()
          if path == "":
              print("File Extracted in Current Directory")
          else:
              print("File Extracted in to ".join(path))
      else:
          print("Not a tar.gz file: '%s '" % sys.argv[0])
  
file_path: tflearn/tflearn/datasets/cifar10.py
imports: from __future__ import absolute_import, print_function
  import os
  import sys
  from six.moves import urllib
  import tarfile
  import numpy
  import pickle
  from ..data_utils import to_categorical
label_desc: Use image node_id 5 for calling a global function with example usage: untar(fname, path) without return types