code: def _del_non_run_linked_dirs(dirs, root):
      """Removes dirs that are links but not runs."""
      for name in list(dirs):
          path = os.path.join(root, name)
          if not os.path.islink(path):
              continue
          if _is_run(path):
              continue
          dirs.remove(name)
  
imports: import glob
  import hashlib
  import logging
  import os
  from guild import tensorboard_util
label_desc: Use image node_id 7 for calling a global function with example usage: _del_non_run_linked_dirs(dirs, root) without return types