def METHOD_NAME(my_future: AbstractFuture):
    def my_malformed_namespace() -> str:
        return "my_namespace"
    with pytest.raises(TypeError, match="takes 0 positional arguments but 1 was given"):
        determine_cache_namespace(my_malformed_namespace, my_future)  # type: ignore