

def resolve(d):
    '\n    .. todo::\n\n        WRITEME\n    '
    tag = pylearn2.config.get_tag(d)
    if (tag != 'dataset'):
        raise TypeError(('pylearn2.datasets.config asked to resolve a config dictionary with tag "%s"' % tag))
    typename = pylearn2.config.get_str(d, 'typename')
    try:
        resolver = resolvers[typename]
    except KeyError:
        reraise_as(TypeError(('pylearn2.datasets does not know of a dataset type "%s"' % typename)))
    return resolver(d)

dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/config.py resolve/original