

def get_caller_module(depth=2):
    'Return the module of the caller.'
    frame = sys._getframe(depth)
    module = inspect.getmodule(frame)
    if (frame is None):
        return get_caller_module(depth=depth)
    return module

dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/steps.py get_caller_module/VarMisuse@34/54 `module`->`frame`