code: def test_internal_error_suppress_errors(self, records):
      def fn001(x):
          def f(ctx):
              raise AssertionError()
  
          comptime(f)
  
      torch.compile(fn001, backend="eager")(torch.randn(1))
  
      record = self.getRecord(records, "WON'T CONVERT")
  
      self.assertExpectedInline(
          munge_exc(record.getMessage()),
          """\
  WON'T CONVERT fn001 test_exc.py line N
  ========== TorchDynamo Stack Trace ==========
  Traceback (most recent call last):
    File "test_exc.py", line N, in f
      raise AssertionError()
  AssertionError:
  
  from user code:
     File "test_exc.py", line N, in fn001
      comptime(f)
  
  
  ========== The above exception occurred while processing the following code ==========
  
    File "test_exc.py", line N, in test_internal_error_suppress_errors
      torch.compile(fn001, backend="eager")(torch.randn(1))
    File "test_exc.py", line N, in fn001
      comptime(f)
  
  ==========""",
      )
  
imports: import logging
  import unittest
  import torch
  import torch._dynamo
  import torch._dynamo.config
  import torch._dynamo.test_case
  from torch._dynamo.comptime import comptime
  from torch._dynamo.exc import Unsupported
  from torch.testing._internal.common_device_type import skipIf
  from torch.testing._internal.common_utils import IS_FBCODE, munge_exc, TEST_Z3
  from torch.testing._internal.logging_utils import LoggingTestCase, make_logging_test
label_desc: Use image node_id 2 for calling the ExcTests obj's underlying member method code with example usage: obj.test_internal_error_suppress_errors(records) without return types