def METHOD_NAME(deprecated_v1):
    @deprecated_v1("2.0", "3.0")
    def foo():
        return True
    # alerting user that a function will be unavailable
    with pytest.deprecated_call(match="pending deprecation"):
        assert foo()