code: def _apply_flag_env(flag_vals, op_cmd, env):
      for name, val in flag_vals.items():
          cmd_flag = op_cmd.cmd_flags.get(name)
          env_name = _flag_env_name(name, cmd_flag)
          env_val = _encode_env_val(val, cmd_flag)
          env[env_name] = env_val
  
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 22 for calling a global function with example usage: _apply_flag_env(flag_vals, op_cmd, env) without return types