code: def _run_logged_attrs(run):
      attrs = {}
      for path, reader in tfevent.attr_readers(run.dir):
          prefix = _attr_prefix(path, run.dir)
          for name, val in reader:
              attrs[_attr_name(prefix, name)] = val
      return attrs
  
imports: import logging
  import os
  import sqlite3
  from guild import run_util
  from guild import tfevent
  from guild import util
  from guild import var
label_desc: Use image node_id 4 for calling a global function with example usage: _run_logged_attrs(run) and returns: attrs