def scoped_validation():
    frame = sys._getframe(1)
    name = frame.f_globals.get('__name__',None)
    lineno = frame.f_lineno
    while name in import_paths and frame.f_back:
        frame = frame.f_back
        name = frame.f_globals.get('__name__', None)
        lineno = frame.f_lineno
    return name,lineno
Determines the calling module and line number.
dataset/ETHPy150Open ooici/pyon/pyon/util/arg_check.py/scoped_validation