code: def test_all(self, _):
      registry = torch._logging._internal.log_registry
  
      dynamo_qnames = registry.log_alias_to_log_qnames["dynamo"]
      for (
          logger_qname
      ) in torch._logging._internal.log_registry.get_log_qnames():
          logger = logging.getLogger(logger_qname)
  
          # if logger_qname is a.b.c and dynamo_qnames contains a.b, it still matches dynamo's INFO setting
          if any(logger_qname.find(d) == 0 for d in dynamo_qnames):
              self.assertEqual(
                  logger.getEffectiveLevel(),
                  logging.INFO,
                  msg=f"expected {logger_qname} is INFO, got {logging.getLevelName(logger.getEffectiveLevel())}",
              )
          else:
              self.assertEqual(
                  logger.getEffectiveLevel(),
                  logging.DEBUG,
                  msg=f"expected {logger_qname} is DEBUG, got {logging.getLevelName(logger.getEffectiveLevel())}",
              )
  
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 11 for calling the LoggingTests obj's underlying member method code with example usage: obj.test_all(_) without return types