code: def _cmd_flags_as_data(cmd_flags):
      data = {}
      for flag_name, cmd_flag in cmd_flags.items():
          data[flag_name] = _cmd_flag_as_data(cmd_flag)
      return data
  
imports: import logging
  import pprint
  from guild import flag_util
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 29 for calling a global function with example usage: _cmd_flags_as_data(cmd_flags) and returns: data