code: def _cmd_flag_for_data(data):
      if not isinstance(data, dict):
          raise ValueError(data)
      return CmdFlag(
          arg_name=data.get("arg-name"),
          arg_skip=data.get("arg-skip"),
          arg_switch=data.get("arg-switch"),
          arg_split=data.get("arg-split"),
          env_name=data.get("env-name"),
          arg_encoding=data.get("arg-encoding"),
          env_encoding=data.get("env-encoding"),
      )
  
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 27 for calling a global function with example usage: _cmd_flag_for_data(data) and returns: CmdFlag