code: def test_event_has_proper_implementation(
      text: Text,
      entity: Dict[Text, Any],
      expected_entity: Dict[Text, Any],
  ):
      actual_entities = _clean_entity_results(text, [entity])
  
      assert actual_entities[0] == expected_entity
  
file_path: rasa/tests/core/test_evaluation.py
imports: import os
  import textwrap
  from pathlib import Path
  import json
  import logging
  from typing import Any, Text, Dict, Callable
  import pytest
  import rasa.shared.utils.io
  import rasa.utils.io
  from rasa.core.test import _create_data_generator, _collect_story_predictions, test, _clean_entity_results
  from rasa.core.constants import CONFUSION_MATRIX_STORIES_FILE, REPORT_STORIES_FILE, FAILED_STORIES_FILE, SUCCESSFUL_STORIES_FILE, STORIES_WITH_WARNINGS_FILE
  from rasa.nlu.test import evaluate_entities, run_evaluation
  from rasa.core.agent import Agent, load_agent
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.shared.exceptions import RasaException
label_desc: Use image node_id 1 for calling a global function with example usage: test_event_has_proper_implementation(text, entity, expected_entity) without return types