human
I wrote the below code

    print 'Load    or    Download    cifar10    >    {}'.format(path)
    def unpickle(file):
        fp = open(file, 'rb')
        if (sys.version_info.major == 2):
            data = pickle.load(fp)
        elif (sys.version_info.major == 3):
            data = pickle.load(fp, encoding='latin-1')
        fp.close()
        return data
    filename = 'cifar-10-python.tar.gz'
    url = 'https://www.cs.toronto.edu/~kriz/'
    maybe_download_and_extract(filename, path, url, extract=True)
    X_train = None
    y_train = []
    for i in range(1, 6):
        data_dic = unpickle(os.path.join(path, 'cifar-10-batches-py/', 'data_batch_{}'.format(i)))
        if (i == 1):
            X_train = data_dic['data']
        else:
            X_train = np.vstack((X_train, data_dic['data']))
        y_train += data_dic['labels']
    test_data_dic = unpickle(os.path.join(path, 'cifar-10-batches-py/', 'test_batch'))
    X_test = test_data_dic['data']
    y_test = np.array(test_data_dic['labels'])
    if (shape == ((-1), 3, 32, 32)):
        X_test = X_test.reshape(shape)
        X_train = X_train.reshape(shape)
    elif (shape == ((-1), 32, 32, 3)):
        X_test = X_test.reshape(shape, order='F')
        X_train = X_train.reshape(shape, order='F')
        X_test = np.transpose(X_test, (0, 2, 1, 3))
        X_train = np.transpose(X_train, (0, 2, 1, 3))
    else:
        X_test = X_test.reshape(shape)
        X_train = X_train.reshape(shape)
    y_train = np.array(y_train)
    if (plotable == True):
        print '\nCIFAR-10'
        import matplotlib.pyplot as plt
        fig = plt.figure(1)
        print ('Shape    of    a    training    image:    X_train[0]', X_train[0].shape)
        plt.ion()
        count = 1
        for row in range(10):
            for col in range(10):
                a = fig.add_subplot(10, 10, count)
                if (shape == ((-1), 3, 32, 32)):
                    plt.imshow(np.transpose(X_train[(count - 1)], (1, 2, 0)), interpolation='nearest')
                elif (shape == ((-1), 32, 32,...

What's a good function header?
 Give me a Python program to print 'Load    or    Download    cifar10    >    {}'?
assistant
#Here is Python program to print 'Load    or    Download    cifar10    >    {}'.

def load_cifar10_dataset(shape=((-1), 32, 32, 3), path='data/cifar10/', plotable=False, second=3):