code: def _expand_parents(paths):
      for path in paths:
          yield path
          dirname = os.path.dirname(path)
          while dirname:
              yield dirname
              dirname = os.path.dirname(dirname)
  
imports: import fnmatch
  import logging
  import re
  import os
  from guild import cli
  from guild import run_manifest
  from guild import util
  from .None import remote_impl_support
  from .None import runs_impl
label_desc: Use image node_id 19 for calling a global function with example usage: _expand_parents(paths) without return types