code: def _get_event(self):
      event_files = sorted(
          glob.glob(os.path.join(self.get_temp_dir(), "*"))
      )
      self.assertEqual(len(event_files), 1)
      events = list(tf.train.summary_iterator(event_files[0]))
      # Expect a boilerplate event for the file_version, then the summary one.
      self.assertEqual(len(events), 2)
      return events[1]
  
file_path: fairness-indicators/tensorboard_plugin/tensorboard_plugin_fairness_indicators/summary_v2_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import glob
  import os
  from tensorboard_plugin_fairness_indicators import metadata
  from tensorboard_plugin_fairness_indicators import summary_v2
  import six
  import tensorflow.compat.v1
  from tensorboard.compat import tf2
label_desc: Use image node_id 2 for calling the SummaryV2Test obj's underlying member method code with example usage: obj._get_event() and returns: events