import json


def load_MNIST_labels(fn = 'labels.txt'):
    """Load in MNIST labels data."""
    # The labels.txt file contains 3000 digit labels in the same order as the image data file
    with open(fn, 'r') as f:
        labels = json.load(f)
    return labels