code: def test_multiline_format(self, records):
      dynamo_log = logging.getLogger(torch._dynamo.__name__)
      dynamo_log.info("test\ndynamo")
      dynamo_log.info("%s", "test\ndynamo")
      dynamo_log.info("test\n%s", "test\ndynamo")
      self.assertEqual(len(records), 3)
      # unfortunately there's no easy way to test the final formatted log other than
      # to ask the dynamo logger's handler to format it.
      for handler in dynamo_log.handlers:
          if torch._logging._internal._is_torch_handler(handler):
              break
      self.assertIsNotNone(handler)
      for record in records:
          r = handler.format(record)
          for l in r.splitlines():
              self.assertIn("[INFO]", l)
  
imports: import atexit
  import contextlib
  import functools
  import logging
  import os
  import re
  import unittest.mock
  import torch
  import torch._dynamo.test_case
  import torch._dynamo.testing
  import torch.distributed
  from torch._dynamo.testing import skipIfNotPy311
  from torch.nn.parallel import DistributedDataParallel
  from torch.testing._internal.common_utils import find_free_port, munge_exc
  from torch.testing._internal.inductor_utils import HAS_CUDA
  from torch.testing._internal.logging_utils import LoggingTestCase, make_logging_test, make_settings_test
label_desc: Use image node_id 16 for calling the LoggingTests obj's underlying member method code with example usage: obj.test_multiline_format(records) without return types