code: def _encode_flag_arg(val, dest, cmd_flag):
      if (
          dest == "globals"  #
          or dest.startswith("global:")  #
          or dest.startswith("dict:")  #
          or dest.startswith("namespace:")
      ):
          return _encode_flag_arg_for_globals(val)
      return _encode_flag_arg_for_argparse(val, cmd_flag)
  
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 14 for calling a global function with example usage: _encode_flag_arg(val, dest, cmd_flag) and returns: _encode_flag_arg_for_argparse, _encode_flag_arg_for_globals