def resolve(name, env):
    """
    Resolve the value assigned to NAME by ENV, possibly via chained bindings
    """
    t = name
    while t in env:
        t = env[t]
    return t
dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/compiler/pltools.py/resolve/original