import pickle


def load_dataset(filename):
    """
    Load a dataset from a pickle file

    :param filename: pickle file name

    :returns: dataset object

    """
    with open(filename, "rb") as fp:
        dataset = pickle.load(fp)
    return dataset