def module_not_found(additional_depth=0):
    tb = sys.exc_info()[2]
    if len(traceback.extract_tb(tb)) > (1 + additional_depth):
        return False
    return True
Checks if ImportError was raised because module does not exist or
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/tools.py/module_not_found