code: def setup_method(self):
      super().setup_method()
      logger = logging.getLogger(str(random.random()))
      self.test_log_file = os.path.join(self.TEST_DIR, "test.log")
      logger.addHandler(logging.FileHandler(self.test_log_file))
      logger.setLevel(logging.DEBUG)
      self.logger = logger
      self._msg = "test message"
  
file_path: allennlp/tests/common/logging_test.py
imports: import os
  import logging
  import random
  from allennlp.common.logging import AllenNlpLogger, prepare_global_logging
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.common.tqdm import Tqdm
label_desc: Use image node_id 1 for calling the TestLogging obj's underlying member method code with example usage: obj.setup_method() without return types