code: def read_cifar10():
      download_cifar10_if_not_found()
  
      print("Reading CIFAR10 data...")
      x_train, y_train = [], []
  
      for training_filename in TRAINING_FILES:
          data, labels = read_cifar10_file(training_filename)
          x_train.append(data)
          y_train.append(labels)
  
      x_test, y_test = read_cifar10_file(TEST_FILE)
  
      x_train = np.concatenate(x_train)
      y_train = np.concatenate(y_train)
  
      x_train = x_train.reshape((x_train.shape[0], 3, 32, 32))
      x_train = np.transpose(x_train, (0, 2, 3, 1))
  
      x_test = x_test.reshape((x_test.shape[0], 3, 32, 32))
      x_test = np.transpose(x_test, (0, 2, 3, 1))
  
      print("Finished reading CIFAR10 data\n")
      return x_train, x_test, y_train, y_test
  
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 3 for calling a global function with example usage: read_cifar10() and returns: x_train,  x_test,  y_train,  y_test