code: def assertParseErrorInline(self, yaml_str: str, expect: str) -> None:
      es = yaml.load(yaml_str, Loader=LineLoader)
      try:
          parse_native_yaml_struct(es, set())
      except AssertionError as e:
          # hack to strip out the context
          msg, _ = str(e).split("  in ", 2)
          self.assertExpectedInline(
              "\n".join(textwrap.wrap(msg)), expect, skip=1
          )
          return
      self.fail(msg="Did not raise when expected to")
  
imports: import textwrap
  import unittest
  from typing import cast
  import expecttest
  import torchgen.dest
  import torchgen.gen
  import yaml
  from torchgen.gen import LineLoader, parse_native_yaml_struct
  from torchgen.model import Annotation, CustomClassType, DispatchKey, NativeFunctionsGroup, Type
label_desc: Use image node_id 1 for calling the TestCodegenModel obj's underlying member method code with example usage: obj.assertParseErrorInline(yaml_str, expect) without return types