def get_field(d, key):
    try:
        rval = d[key]
    except __HOLE__:
        reraise_as(ValueError('Could not access "'+key+'" in \n'+str(d)))
    return rval
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/config/old_config.py/get_field