code: def _dispatch_event(self, event: EventType) -> None:
      for listener in self._listeners[event.get_event_name()]:
          listener(event)
  
imports: from collections import defaultdict
  from dataclasses import asdict, dataclass
  import logging
  from retrying import retry
  from threading import Thread, Event
  import time
  import typing
  from bson import json_util
  import requests
  import sseclient
  from uuid import uuid4
  import fiftyone.constants
  import fiftyone.core.state
  from fiftyone.core.session.events import Event, EventType, ListenPayload, dict_factory
label_desc: Use image node_id 9 for calling the Client obj's underlying member method code with example usage: obj._dispatch_event(event) without return types