def METHOD_NAME():
    class CustomException(Exception):
        pass
    def f():
        g()
    def g():
        h()
    def h():
        raise mark_exception_frame_correction(CustomException(), +2)
    try:
        f()
    except CustomException:
        err = Error.capture_exception()
    assert err.traceback.frames[-1].func_name == 'f'  # pylint: disable=used-before-assignment