class_docstr: A parameterized `TestCase` that manages a test subdirectory.
class_docstr_tok: ["A","parameterized","`","TestCase","`","that","manages","a","test","subdirectory","."]
code: def setUp(self):
      super(AdanetTestCase, self).setUp()
      # Setup and cleanup test directory.
      # Flags are not automatically parsed at this point.
      flags.FLAGS(sys.argv)
      self.test_subdirectory = os.path.join(
          flags.FLAGS.test_tmpdir, self.id()
      )
      shutil.rmtree(self.test_subdirectory, ignore_errors=True)
      os.makedirs(self.test_subdirectory)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import shutil
  import struct
  import sys
  from absl import flags
  from absl.testing import parameterized
  from adanet import ensemble
  from adanet import subnetwork
  from adanet import tf_compat
  from adanet.core.architecture import _Architecture
  from adanet.core.candidate import _Candidate
  from adanet.core.ensemble_builder import _EnsembleSpec
  from adanet.core.ensemble_builder import _SubnetworkSpec
  from adanet.core.eval_metrics import _EnsembleMetrics
  from adanet.core.eval_metrics import _IterationMetrics
  from adanet.core.eval_metrics import _SubnetworkMetrics
  import tensorflow.compat.v2
label_desc: Use image node_id 1 for calling the AdanetTestCase obj's underlying member method code with example usage: obj.setUp() without return types