code: def test_Logger(self) -> None:
      logger = get_logger(BASE_LOGGER_NAME + ".testLogger")
      # Verify it doesn't crash
      logger.warning(self.warning_string)
      # Patch it, verify we actually called it
      patcher = patch.object(logger, "warning")
      mock_warning = patcher.start()
      logger.warning(self.warning_string)
      mock_warning.assert_called_once_with(self.warning_string)
      # Need to stop patcher, else in some environments (like pytest)
      # the mock will leak into other tests, since it's getting set
      # onto the python logger directly.
      patcher.stop()
  
file_path: Ax/ax/utils/common/tests/test_logger.py
imports: import logging
  from tempfile import NamedTemporaryFile
  from unittest.mock import patch
  from ax.utils.common.logger import build_file_handler, get_logger
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 2 for calling the LoggerTest obj's underlying member method code with example usage: obj.test_Logger() without return types