import pickle


def load_encoded_dataset(filename):
    """Load encoded dataset from file using serialization.

    Parameters
    ----------
    filename : str
        file name of the encoded dataset (as a pkl file)

    Returns
    -------
    dataset : list
        list of dictionaries, each one corresponds to a piece


    """
    # load dataset
    dataset = pickle.load(open(filename, "rb"))


    return dataset