def lazy_import(func):
    try:
        f = sys._getframe(1)
    except Exception:
        namespace = None
    else:
        namespace = f.f_locals
    return _LazyImport(func.func_name,func,namespace)
Decorator for declaring a lazy import.
dataset/ETHPy150Open cloudmatrix/esky/esky/util.py/lazy_import