code: def _cmd_flags_for_data(data):
      if not data:
          return {}
      if not isinstance(data, dict):
          raise ValueError(data)
      return {
          flag_name: _cmd_flag_for_data(cmd_flag_data)
          for flag_name, cmd_flag_data in data.items()
      }
  
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 26 for calling a global function with example usage: _cmd_flags_for_data(data) and returns: unknown, dict