code: def _iter_source_flag_name_candidates(source):
      if source.flag_name:
          yield source.flag_name
      elif source.name:
          yield source.name
      elif source.uri:
          yield source.uri
          yield source.parsed_uri.path
  
imports: import os
  import re
  import logging
  import typing
  from guild import cli
  from guild import resolver
  from guild import resourcedef
  from guild import util
label_desc: Use image node_id 7 for calling a global function with example usage: _iter_source_flag_name_candidates(source) without return types