code: def _resdef_config(resdef, flag_vals):
      return {
          name: flag_vals[name]
          for name in resdef_flag_name_candidates(resdef)
          if name in flag_vals
      }
  
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 3 for calling a global function with example usage: _resdef_config(resdef, flag_vals) and returns: unknown