def METHOD_NAME():
    retry_counter = 0
    @retry_function(max_retries=2)
    def erroneous_func():
        nonlocal retry_counter
        retry_counter += 1
        assert False
    with pytest.raises(AssertionError):
        erroneous_func()
    assert retry_counter == 3