code: def testSummaryMultipleStepMetrics(self):
      if tf.executing_eagerly():
          self.skipTest("b/123881100")
      with tf.compat.v2.summary.record_if(True):
          self.metric1.tf_summaries(
              train_step=self.global_step,
              step_metrics=(self.metric2, self.metric3),
          )
          self.metric2.tf_summaries(
              train_step=self.global_step,
              step_metrics=(self.metric2, self.metric3),
          )
          self.metric3.tf_summaries(
              train_step=self.global_step,
              step_metrics=(self.metric2, self.metric3),
          )
  
      with self.cached_session() as sess:
          sess.run(tf.compat.v1.global_variables_initializer())
          sess.run(self.writer.init())
          self.metric1.value = 1
          self.metric2.value = 2
          self.metric3.value = 3
          py_metric.run_summaries(
              [self.metric1, self.metric2, self.metric3]
          )
          sess.run(self.writer.flush())
  
      records = self.get_records()
  
      # (3 records for metric1, 2 for metric2, 2 for metric3) + 1 file header
      self.assertEqual(8, len(records))
  
      self.assert_summary_equals(records, "Metrics/Metric1", 0, 1)
      self.assert_summary_equals(
          records, "Metrics_vs_Metric2/Metric1", 2, 1
      )
      self.assert_summary_equals(
          records, "Metrics_vs_Metric3/Metric1", 3, 1
      )
  
      self.assert_summary_equals(records, "Metrics/Metric2", 0, 2)
      self.assert_summary_equals(
          records, "Metrics_vs_Metric3/Metric2", 3, 2
      )
  
      self.assert_summary_equals(records, "Metrics/Metric3", 0, 3)
      self.assert_summary_equals(
          records, "Metrics_vs_Metric2/Metric3", 2, 3
      )
  
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 9 for calling the PyMetricSummariesTest obj's underlying member method code with example usage: obj.testSummaryMultipleStepMetrics() without return types