code: def for_data(data):
      cmd_args = data.get("cmd-args") or []
      cmd_env = data.get("cmd-env") or {}
      cmd_flags = _cmd_flags_for_data(data.get("cmd-flags"))
      flags_dest = data.get("flags-dest")
      return OpCmd(cmd_args, cmd_env, cmd_flags, flags_dest)
  
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 25 for calling a global function with example usage: for_data(data) and returns: OpCmd