def METHOD_NAME() -> None:
    def _func() -> int:
        return 10
    name = "bar"
    decorator_deprecation = _deprecated.deprecated_func("1.1.0", "3.0.0", name=name)
    decorated_sample_func = decorator_deprecation(_func)
    with pytest.warns(FutureWarning) as record:
        decorated_sample_func()
    assert isinstance(record.list[0].message, Warning)
    assert name in record.list[0].message.args[0]