class_docstr: Could use torch.testing._internal.common_utils to reduce boilerplate.
  GH CI job doesn't build torch before running tools unit tests, hence
  manually adding these parametrized tests.
class_docstr_tok: ["Could","use","torch.testing._internal.common_utils","to","reduce","boilerplate",".","GH","CI","job","does","n't","build","torch","before","running","tools","unit","tests",",","hence","manually","adding","these","parametrized","tests","."]
code: def test_schema_has_no_return_type_argument_throws(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)
  
imports: import tempfile
  import unittest
  from typing import Any, Dict
  from unittest.mock import ANY, Mock, patch
  import expecttest
  import torchgen
  from torchgen.executorch.api.custom_ops import ComputeNativeFunctionStub
  from torchgen.executorch.model import ETKernelIndex
  from torchgen.gen_executorch import gen_headers
  from torchgen.model import Location, NativeFunction
  from torchgen.selective_build.selector import SelectiveBuilder
  from torchgen.utils import FileManager
label_desc: Use image node_id 7 for calling the TestComputeNativeFunctionStub obj's underlying member method code with example usage: obj.test_schema_has_no_return_type_argument_throws() without return types