code: def summary_iterator(path: str) -> event_pb2.Event:
      # `tf.data.TFRecordDataset` is not used because it requires Eager or
      # tf.function, which is a state the util should not own. b/174888476
      for record in tf_record.tf_record_iterator(path):
          yield event_pb2.Event.FromString(record)
  
imports: import datetime
  import os
  import time
  from typing import Dict, Optional, Tuple
  from absl import logging
  import numpy
  from six.moves import range
  from six.moves import zip
  import tensorflow
  from tensorflow.core.util import event_pb2
  from tensorflow.python.lib.io import tf_record
label_desc: Use image node_id 6 for calling a global function with example usage: summary_iterator(path) without return types