def replace_event_annotations(event, newanns):
_humilis = event.get("<STR_LIT>", {})<EOL>if not _humilis:<EOL><INDENT>event["<STR_LIT>"] = {"<STR_LIT>": newanns}<EOL><DEDENT>else:<EOL><INDENT>event["<STR_LIT>"]["<STR_LIT>"] = newanns<EOL><DEDENT>
Replace event annotations with the provided ones.