def get_failed_events(op):
events = get_events(op)<EOL>if events:<EOL><INDENT>return [<EOL>e for e in events if int(e.get('<STR_LIT>', {}).get('<STR_LIT>', <NUM_LIT:0>)) != <NUM_LIT:0><EOL>]<EOL><DEDENT>return None<EOL>
Return the events (if any) with a non-zero exitStatus.