code: def _log_tfevent_iter_error(dir, e):
      if log.getEffectiveLevel() <= logging.DEBUG:
          log.exception("reading events from %s", dir)
      else:
          log.warning("error reading TF event from %s: %s", dir, e)
  
imports: import glob
  import hashlib
  import logging
  import os
  from guild import tensorboard_util
label_desc: Use image node_id 1 for calling a global function with example usage: _log_tfevent_iter_error(dir, e) without return types