code: def assert_summary_equals(self, records, tag, step, value):
      for record in records[1:]:
          if record.summary.value[0].tag != tag:
              continue
          if record.step != step:
              continue
          self.assertEqual(
              value, tf.make_ndarray(record.summary.value[0].tensor)
          )
          return
      self.fail(
          "Could not find record for tag {} and step {}".format(
              tag, step
          )
      )
  
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 3 for calling the PyMetricSummariesTest obj's underlying member method code with example usage: obj.assert_summary_equals(records, tag, step, value) without return types