code: def setUp(self):
      super(PyMetricSummariesTest, self).setUp()
      self.summary_dir = tempfile.mkdtemp(dir=os.getenv("TEST_TMPDIR"))
      self.writer = tf.compat.v2.summary.create_file_writer(
          self.summary_dir
      )
      self.writer.set_as_default()
      self.metric1 = DummyMetric("Metric1")
      self.metric2 = DummyMetric("Metric2")
      self.metric3 = DummyMetric("Metric3")
      self.global_step = tf.compat.v1.train.get_or_create_global_step()
      self.incr_global_step = tf.compat.v1.assign_add(
          self.global_step, 1
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tempfile
  import tensorflow
  from tf_agents.metrics import py_metric
label_desc: Use image node_id 1 for calling the PyMetricSummariesTest obj's underlying member method code with example usage: obj.setUp() without return types