class_docstr: A custom subclass of :class:`~unittest.TestCase` that disables some of the
  more verbose AllenNLP logging and that creates and destroys a temp directory
  as a test fixture.
class_docstr_tok: ["A","custom","subclass","of",":","class",":","`","~unittest.TestCase","`","that","disables","some","of","the","more","verbose","AllenNLP","logging","and","that","creates","and","destroys","a","temp","directory","as","a","test","fixture","."]
code: def setUp(self):
      logging.basicConfig(
          format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
          level=logging.DEBUG,
      )
      # Disabling some of the more verbose logging statements that typically aren't very helpful
      # in tests.
      logging.getLogger("allennlp.common.params").disabled = True
      logging.getLogger("allennlp.nn.initializers").disabled = True
      logging.getLogger(
          "allennlp.modules.token_embedders.embedding"
      ).setLevel(logging.INFO)
      logging.getLogger("urllib3.connectionpool").disabled = True
      log_pytorch_version_info()
  
      self.TEST_DIR = pathlib.Path(TEST_DIR)
  
      os.makedirs(self.TEST_DIR, exist_ok=True)
  
file_path: magnitude/pymagnitude/third_party/allennlp/common/testing/test_case.py
imports: from __future__ import division
  from __future__ import absolute_import
  import logging
  import os
  import pathlib
  import shutil
  import tempfile
  from unittest import TestCase
  from allennlp.common.checks import log_pytorch_version_info
label_desc: Use image node_id 1 for calling the AllenNlpTestCase obj's underlying member method code with example usage: obj.setUp() without return types