

def extract(dct, transform):
    '\n  Recursively extract the transformed data from a given dictionary.\n  '
    if (transform in v):
        return dct[transform]
    rval = type(dct)()
    for (k, v) in dct.iteritems():
        rval[k] = extract(v, transform)
    return rval

dataset/ETHPy150Open agoragames/torus/torus/web.py extract/VarMisuse@18/43 `dct`->`v`