import pickle


def load_pickled_dataset(args):
    """Load a pickled dataset of plots (or pseudoplots) as created in prepare_and_save_plots_dataset."""
    with open(args.plots_pickled_dataset_path, "rb") as pfile:
        return pickle.load(pfile)