

def exec_(code, globs=None, locs=None):
    if (globs is None):
        frame = _sys._getframe(1)
        globs = frame.f_globals
        if (locs is None):
            locs = locs.f_locals
        del frame
    elif (locs is None):
        locs = globs
    exec('exec code in globs, locs')

dataset/ETHPy150Open packages/psutil/psutil/_compat.py exec_/VarMisuse@53/63 `frame`->`locs`