import pickle


def unpickle(file):
    """Load byte data from file"""
    with open(file, 'rb') as f:  # rb for reading, writing in binary form
        data = pickle.load(f, encoding='latin-1')  # latin-1 encoding for Numpy arrays
        return data