def METHOD_NAME():
    import pickle
    with timeout():
        mp_dataset = MultiProcDataset(
            dataset={"class": "MapDatasetWrapper", "map_dataset": _MyCustomDummyMapDataset},
            num_workers=1,
            buffer_size=1,
        )
        mp_dataset.initialize()
        mp_dataset_seqs = dummy_iter_dataset(mp_dataset)
        mp_dataset_serialized = pickle.dumps(mp_dataset)
    with timeout():
        mp_dataset_ = pickle.loads(mp_dataset_serialized)
        mp_dataset_seqs_ = dummy_iter_dataset(mp_dataset_)
    compare_dataset_seqs(mp_dataset_seqs, mp_dataset_seqs_)