def METHOD_NAME(self) -> None:
    func = _get_native_function_from_yaml(
        {"func": "custom::foo.bool(Tensor self) -> bool"}
    )
    gen = ComputeNativeFunctionStub()
    with self.assertRaisesRegex(Exception, "Can't handle this return type"):
        gen(func)