code: def _apply_resdef_flags(resdef, opdef):
      for source in resdef.sources:
          flagdef = _flagdef_for_source(source, opdef)
          if flagdef:
              _apply_flagdef(flagdef, opdef, source)
  
file_path: guildai/guild/plugins/resource_flags.py
imports: import logging
  from guild import guildfile
  from guild import op_dep
  from guild import plugin
label_desc: Use image node_id 2 for calling a global function with example usage: _apply_resdef_flags(resdef, opdef) without return types