code: def _iter_resdef_flag_name_candidates(resdef):
      for source in resdef.sources:
          for name in _iter_source_flag_name_candidates(source):
              yield name
  
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 5 for calling a global function with example usage: _iter_resdef_flag_name_candidates(resdef) without return types