class_docstr: A collection of EventRecord instances that can be queried by event specification.
docstr: Support subscription [] operator
docstr_tok: ["Support","subscription","[","]","operator"]
code: def __getitem__(self, item):
      """Support subscription [] operator"""
      return self.events[item]
  
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 6 for calling the EventCollection obj's underlying member method code with example usage: obj.__getitem__(item) and returns: self