code: def _anonymizer(
      _: structlog.BoundLogger, __: str, event_dict: Dict[str, Any]
  ) -> Dict[str, Any]:
      """Anonymizes event dict."""
      anonymizable_keys = [
          "text",
          "response_text",
          "user_text",
          "slot_values",
          "parse_data_text",
          "parse_data_entities",
          "prediction_events",
          "tracker_latest_message",
          "prefilled_slots",
          "message",
          "response",
          "slot_candidates",
          "rasa_event",
          "rasa_events",
          "tracker_states",
          "current_states",
          "old_states",
          "current_states",
          "successes",
          "current_entity",
          "next_entity",
          "states",
          "entity",
          "token_text",
          "user_message",
          "json_message",
      ]
      anonymization_pipeline = (
          plugin_manager().hook.get_anonymization_pipeline()
      )
  
      if anonymization_pipeline:
          for key in anonymizable_keys:
              if key in event_dict:
                  anonymized_value = anonymization_pipeline.log_run(
                      event_dict[key]
                  )
                  event_dict[key] = anonymized_value
      return event_dict
  
file_path: rasa/rasa/utils/log_utils.py
imports: from __future__ import annotations
  import os
  import logging
  import sys
  from typing import Any, Dict, Optional
  import structlog
  from structlog_sentry import SentryProcessor
  from structlog.dev import ConsoleRenderer
  from structlog.typing import EventDict, WrappedLogger
  from rasa.shared.constants import ENV_LOG_LEVEL, DEFAULT_LOG_LEVEL
  from rasa.plugin import plugin_manager
label_desc: Use image node_id 1 for calling a global function with example usage: _anonymizer(_, __, event_dict) and returns: event_dict