code: def test_logging(self, records):
      def f(x):
          return torch.sin(x)
  
      compiled_f = aot_function(f, fw_compiler=nop, bw_compiler=nop)
      compiled_f(torch.randn(3))
      self.assertGreater(len(records), 0)
  
file_path: pytorch/test/functorch/test_logging.py
imports: import torch
  from torch.testing._internal.common_utils import run_tests
  from torch.testing._internal.logging_utils import LoggingTestCase, make_logging_test
  from torch._functorch.aot_autograd import aot_function
  from torch._functorch.compilers import nop
  import logging
label_desc: Use image node_id 1 for calling the TestAOTLogging obj's underlying member method code with example usage: obj.test_logging(records) and returns: torch