def METHOD_NAME(self):
    """Convert the object to a yaml string.
    Returns:
        str: The yaml string.
    """
    json_obj = self.to_json()
    yaml_obj = yaml.safe_dump(json_obj)
    return yaml_obj