code: def _maybe_apply_run_id_choices(source, flag_vals, flagdef):
      from guild import guildfile
      from guild import resolver
  
      if source.parsed_uri.scheme != "operation" or flagdef.choices:
          return
      oprefs = resolver.oprefs_for_source(source)
      run_id_prefix = flag_vals.get(flagdef.name)
      candidate_runs = resolver.matching_runs(oprefs, run_id_prefix)
      if candidate_runs:
          flagdef.choices = [
              guildfile.FlagChoice(run.id, flagdef)
              for run in candidate_runs
          ]
  
imports: import click
  from guild import click_util
  from .None import ac_support
  from .None import remote_support
label_desc: Use image node_id 13 for calling a global function with example usage: _maybe_apply_run_id_choices(source, flag_vals, flagdef) without return types