class_docstr: A collection of EventRecord instances that can be queried by event specification.
code: def __init__(self, events: Iterable[EventRecord] = ()):
      self.events: MutableSequence[EventRecord] = deque(events)
  
file_path: maze/maze/core/events/event_collection.py
imports: from collections import deque
  from typing import Callable, Iterable, MutableSequence, Union
  from maze.core.events.event_service import EventRecord
label_desc: Use image node_id 1 to create a new EventCollection object  with example: obj = EventCollection(events)