code: def _encode_flag_arg_for_globals(val):
      """Returns an encoded flag value for Python globals interface.
  
      Flags destined for globals within a Python module are encoded
      using standard YAML encoding. Decoding must be handled using
      standard YAML decoding.
      """
      return yaml_util.encode_yaml(val, default_flow_style=True)
  
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 15 for calling a global function with example usage: _encode_flag_arg_for_globals(val) and returns: yaml_util