class_docstr: Dispatches events which attached plugins can react to.
code: def validate_event(self, *events: EventIdenifier):
      for event in events:
          assert isinstance(event, EventIdenifier)
  
          if (
              self.valid_events is not None
              and event not in self.valid_events
          ):
              raise RuntimeError(
                  f"Event '{event}' not recognized. Available: {', '.join(self.valid_events)}"
              )
          return event
      return None
  
imports: import logging
  from collections import defaultdict
  from inspect import isclass, signature
  from itertools import count
  from queue import Queue
  from typing import Any, Callable, Dict, Iterator, List, NewType, Optional, Sequence, Set, Type, Union, cast
label_desc: Use image node_id 4 for calling the Pluggable obj's underlying member method code with example usage: obj.validate_event() and returns: None, event