code: def test_print_error_and_exit():
      with pytest.raises(SystemExit):
          rasa.shared.utils.cli.print_error_and_exit("")
  
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 2 for calling a global function with example usage: test_print_error_and_exit() without return types