code: def test_print_warning(monkeypatch: MonkeyPatch):
      mock = Mock()
      monkeypatch.setattr(builtins, "print", mock_print)
      monkeypatch.setattr(
          rasa.shared.utils.io, "handle_print_blocking", mock
      )
  
      text = "Test Warning"
      rasa.shared.utils.cli.print_warning(text)
  
      assert mock.called
      assert (
          mock.call_args_list[0][0][0]
          == rasa.shared.utils.io.bcolors.WARNING
          + text
          + rasa.shared.utils.io.bcolors.ENDC
      )
  
file_path: rasa/tests/shared/utils/test_cli.py
imports: import builtins
  from unittest.mock import Mock
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  import rasa.shared.utils.cli
label_desc: Use image node_id 5 for calling a global function with example usage: test_print_warning(monkeypatch) without return types