import importlib


def get_dataset(cfg, designation):
    """
    Return a Dataset for the given designation ('train', 'valid', 'test').
    """
    dataset = importlib.import_module('.' + cfg['dataset'], __package__)
    return dataset.create(cfg, designation)