code: def download_cifar10_if_not_found():
      if os.path.exists(CIFAR10_PATH):
          print("CIFAR10 was already downloaded and extracted.")
          print("  Output path: {}".format(CIFAR10_PATH))
          print("")
          return
  
      print("Downloading CIFAR 10 dataset...")
      print("  From URL:    {}".format(CIFAR10_URL))
      print("  Output path: {}".format(CIFAR10_TAR_PATH))
      urlretrieve(CIFAR10_URL, CIFAR10_TAR_PATH)
      print("Downloading finished\n")
  
      print("Extracting CIFAR 10 dataset...")
      with tarfile.open(CIFAR10_TAR_PATH) as tar:
          tar.extractall(path=FILES_DIR)
  
      print("Extracting finished\n")
  
file_path: neupy/examples/cnn/load_cifar10.py
imports: import os
  import tarfile
  import numpy
  import six
  from six.moves.urllib.request import urlretrieve
  from six.moves import cPickle
  from imagenet_tools import FILES_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: download_cifar10_if_not_found() without return types