(op)
return [e for e in events if is_failed_event(e)]
Return all "failed" events.
Return all "failed" events.
Return all failed events .
def get_failed_events(op):
  """Return all "failed" events."""
  events = get_events(op)
  if not events:
    return None

  return [e for e in events if is_failed_event(e)]
def get_failed_events ( op ) : events = get_events ( op ) if not events : return None return [ e for e in events if is_failed_event ( e ) ]