code: def setUp(self):
      super().setUp()
      self.summary_dir = os.path.join(FLAGS.test_tmpdir, "mylogs")
  
      # Clean up any summary directories before starting the test so we can
      # validate that summaries are only written when enabled.
      try:
          gfile.DeleteRecursively(self.summary_dir)
      except Exception:  # pylint: disable=broad-exception-caught
          pass
  
file_path: tensorflow/tensorflow/python/eager/summary_optimizer_test.py
imports: import os
  import os.path
  from absl import flags
  from tensorflow.core.function.runtime_client import runtime_client
  from tensorflow.core.util import event_pb2
  from tensorflow.python.data.ops import readers
  from tensorflow.python.eager.polymorphic_function import polymorphic_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import summary_ops_v2
  from tensorflow.python.ops import variables
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the SummaryOpsTransformationTest obj's underlying member method code with example usage: obj.setUp() without return types