code: def test_LoggerWithFile(self) -> None:
      with NamedTemporaryFile() as tf:
          logger = get_logger(BASE_LOGGER_NAME + ".testLoggerWithFile")
          logger.addHandler(build_file_handler(tf.name))
          logger.info(self.warning_string)
          output = str(tf.read())
          self.assertIn(BASE_LOGGER_NAME, output)
          self.assertIn(self.warning_string, output)
          tf.close()
  
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 3 for calling the LoggerTest obj's underlying member method code with example usage: obj.test_LoggerWithFile() without return types