code: def Parse(text):
    
    precondition.AssertType(text, Text)
  
    if compatibility.PY2:
      text = text.encode("utf-8")
  
    return yaml.safe_load(text)
docs: Parses a YAML source into a Python object.
  
    Args:
      text: A YAML source to parse.
  
    Returns:
      A Python data structure corresponding to the YAML source.