docstr: Yields event for all available events in dir.
docstr_tok: ["Yields","event","for","all","available","events","in","dir","."]
code: def __iter__(self):
      """Yields event for all available events in dir."""
      _ensure_tb_logging_patched()
      try:
          for event in tensorboard_util.iter_tf_events(
              self.dir, self.path_filter
          ):
              if self.all_events or event.HasField("summary"):
                  yield event
      except Exception as e:
          # PEP 479 landed in Python 3.7 and TB triggers this
          # runtime error when there are no events to read.
          if e.args and e.args[0] == "generator raised StopIteration":
              return
          _log_tfevent_iter_error(self.dir, e)
  
imports: import glob
  import hashlib
  import logging
  import os
  from guild import tensorboard_util
label_desc: Use image node_id 2 for calling the EventReader obj's underlying member method code with example usage: obj.__iter__() without return types