def write_annotation(annotation, out):
out.write('<STR_LIT>')<EOL>write_value('<STR_LIT>', annotation.annotator, out)<EOL>write_value('<STR_LIT>', annotation.annotation_date_iso_format, out)<EOL>if annotation.has_comment:<EOL><INDENT>write_text_value('<STR_LIT>', annotation.comment, out)<EOL><DEDENT>write_value('<STR_LIT>', annotation.annotation_type, out)<EOL>write_value('<STR_LIT>', annotation.spdx_id, out)<EOL>
Write the fields of a single annotation to out.