def resolve(d):
    """ given a dictionary d, returns the object described by the dictionary """

    tag = get_tag(d)

    try:
        resolver = resolvers[tag]
    except __HOLE__:
        reraise_as(TypeError('config does not know of any object type "'+tag+'"'))

    return resolver(d)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/config/old_config.py/resolve