code: def test_get_anonymization_pipeline(monkeypatch: MonkeyPatch) -> None:
      manager = plugin_manager()
      monkeypatch.setattr(
          manager.hook,
          "get_anonymization_pipeline",
          MagicMock(return_value=None),
      )
  
      manager.hook.get_anonymization_pipeline()
      manager.hook.get_anonymization_pipeline.assert_called_once()
  
file_path: rasa/tests/test_plugin.py
imports: import warnings
  from typing import Optional, Text
  from unittest.mock import MagicMock
  import pytest
  from pluggy import PluginManager
  from pytest import MonkeyPatch
  from rasa.core.brokers.broker import EventBroker
  from rasa.core.tracker_store import TrackerStore
  from rasa.plugin import plugin_manager
  from rasa.shared.core.domain import Domain
  from rasa.utils.endpoints import EndpointConfig
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_anonymization_pipeline(monkeypatch) without return types