def fail(message):
    def thrower(*args, **kwargs):
        raise Exception(message % dict(args= args, kwargs = kwargs))
    return thrower
dataset/ETHPy150Open sahana/eden/tests/unit_tests/modules/test_utils/find_JSON_format_data_structure.py/fail/original