def dataset_map_from_iterable(iterable):
    return {dataset.dataset_id: dataset
            for dataset in iterable}
Turn a list of datasets into a map from their IDs to the datasets.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/test/test_blockdevice.py/dataset_map_from_iterable