code: def test_remote_action_validate_all_event_subclasses(
      event_class: Type[Event],
  ):
      if event_class.type_name == "slot":
          response = {
              "events": [
                  {"event": "slot", "name": "test", "value": "example"}
              ],
              "responses": [],
          }
      elif event_class.type_name == "entities":
          response = {
              "events": [{"event": "entities", "entities": []}],
              "responses": [],
          }
      else:
          response = {
              "events": [{"event": event_class.type_name}],
              "responses": [],
          }
  
      # ignore the below events since these are not sent or received outside Rasa
      if event_class.type_name not in [
          "wrong_utterance",
          "wrong_action",
          "warning_predicted",
      ]:
          validate(response, RemoteAction.action_response_format_spec())
  
file_path: rasa/tests/shared/utils/schemas/test_events.py
imports: from typing import Type
  import pytest
  from jsonschema import ValidationError, validate
  from rasa.core.actions.action import RemoteAction
  from rasa.shared.core.events import Event
  from rasa.shared.utils.schemas.events import EVENT_SCHEMA
  import rasa.shared.utils.common
label_desc: Use image node_id 1 for calling a global function with example usage: test_remote_action_validate_all_event_subclasses(event_class) without return types