def load(name):
    # Pickle module isn't backwards compatible. Hack so it works:
    compat = {'encoding': 'latin1'} if sys.version_info[0] == 3 else {}

    print("\t"+name)
    try:
        with open(name, 'rb') as f:
            return pickle.load(f, **compat)
    except __HOLE__:
        import gzip
        with gzip.open(name+'.gz', 'rb') as f:
            return pickle.load(f, **compat)


# Download and extract Python data for CIFAR10 manually from here:
#     http://www.cs.toronto.edu/~kriz/cifar.html
dataset/ETHPy150Open aigamedev/scikit-neuralnetwork/examples/bench_cifar10.py/load