code: def _strip_encoded_yaml(encoded):
      stripped = encoded.strip()
      if stripped.endswith("\n..."):
          stripped = stripped[:-4]
      return stripped
  
file_path: guildai/guild/yaml_util.py
imports: import os
  import re
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: _strip_encoded_yaml(encoded) and returns: stripped