class_docstr: Base class for any event broker implementation.
docstr: Publishes a json-formatted Rasa Core event into an event queue.
code: def publish(self, event: Dict[Text, Any]) -> None:
      """Publishes a json-formatted Rasa Core event into an event queue."""
      raise NotImplementedError(
          "Event broker must implement the `publish` method."
      )
  
file_path: rasa/rasa/core/brokers/broker.py
imports: from __future__ import annotations
  import logging
  from asyncio import AbstractEventLoop
  from typing import Any, Dict, Text, Optional, Union, TypeVar, Type
  import aiormq
  import rasa.shared.utils.common
  import rasa.shared.utils.io
  from rasa.shared.exceptions import ConnectionException
  from rasa.utils.endpoints import EndpointConfig
label_desc: Use image node_id 1 for calling the EventBroker obj's underlying member method code with example usage: obj.publish(event) without return types