code: def test_log_writer(self) -> None:
      self.writer.info(self._tmpfile_write_contents)
      f = PathManager.open(
          glob.glob(os.path.join(self._tmpdir, "logs", "train*"))[0]
      )
      self.assertTrue(
          any(
              self._tmpfile_write_contents in line
              for line in f.readlines()
          )
      )
      f = PathManager.open(os.path.join(self._tmpdir, "train.log"))
      self.assertTrue(
          any(
              self._tmpfile_write_contents in line
              for line in f.readlines()
          )
      )
  
file_path: mmf/tests/utils/test_logger.py
imports: import argparse
  import glob
  import os
  import shutil
  import tempfile
  import unittest
  from typing import Optional
  from mmf.common.registry import registry
  from mmf.utils.configuration import Configuration
  from mmf.utils.file_io import PathManager
  from mmf.utils.logger import setup_logger
label_desc: Use image node_id 4 for calling the TestLogger obj's underlying member method code with example usage: obj.test_log_writer() without return types