class_docstr: Collection of events stacked by operator `__or__`.
  
  .. code-block:: python
  
      events = Events.STARTED | Events.COMPLETED
      events |= Events.ITERATION_STARTED(every=3)
  
      engine = ...
  
      @engine.on(events)
      def call_on_events(engine):
          # do something
  
  or
  
  .. code-block:: python
  
      @engine.on(Events.STARTED | Events.COMPLETED | Events.ITERATION_STARTED(every=3))
      def call_on_events(engine):
          # do something
class_docstr_tok: ["Collection","of","events","stacked","by","operator","`","__or__","`",".","..","code-block",":",":","python","events","=","Events.STARTED","|","Events.COMPLETED","events","|=","Events.ITERATION_STARTED","(","every=3",")","engine","=","...","@","engine.on","(","events",")","def","call_on_events","(","engine",")",":","#","do","something","or","..","code-block",":",":","python","@","engine.on","(","Events.STARTED","|","Events.COMPLETED","|","Events.ITERATION_STARTED","(","every=3",")",")","def","call_on_events","(","engine",")",":","#","do","something"]
code: def __iter__(
      self,
  ) -> Iterator[Union[Events, CallableEventWithFilter]]:
      return iter(self._events)
  
imports: import numbers
  import warnings
  import weakref
  from collections.abc import Sequence
  from enum import Enum
  from types import DynamicClassAttribute
  from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, TYPE_CHECKING, Union
  from torch.utils.data import DataLoader
  from ignite.engine.utils import _check_signature
label_desc: Use image node_id 4 for calling the EventsList obj's underlying member method code with example usage: obj.__iter__() and returns: iter