docstr: Ensure a logged string actually appears in the log file.
docstr_tok: ["Ensure","a","logged","string","actually","appears","in","the","log","file","."]
code: def testLogging(self):
      """Ensure a logged string actually appears in the log file."""
      logger = logging_utils.get_logger(self._logger_config)
      logger.info("Test")
      log_file_path = os.path.join(self._log_root)
      f = fileio.open(os.path.join(log_file_path, "tfx.log"), mode="r")
      self.assertRegex(
          f.read(),
          r"^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d - : \(logging_utils_test.py:\d\d\) - INFO: Test$",
      )
  
file_path: tfx/tfx/utils/logging_utils_test.py
imports: import logging
  import os
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.utils import logging_utils
label_desc: Use image node_id 2 for calling the LoggingUtilsTest obj's underlying member method code with example usage: obj.testLogging() without return types