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 tearDown(self):
      shutil.rmtree(self.TEST_DIR)
  
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 2 for calling the AllenNlpTestCase obj's underlying member method code with example usage: obj.tearDown() without return types