code: def get_records(self):
      files = os.listdir(self.summary_dir)
      self.assertEqual(1, len(files))
      file_path = os.path.join(self.summary_dir, files[0])
      return list(tf.compat.v1.train.summary_iterator(file_path))
  
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 4 for calling the PyMetricSummariesTest obj's underlying member method code with example usage: obj.get_records() and returns: list