def annotation_has_expired(event, key, timeout):
anns = get_annotations(event, key)<EOL>if anns:<EOL><INDENT>return (time.time() - anns[<NUM_LIT:0>]["<STR_LIT>"]) > timeout<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Check if an event error has expired.