code: def test_non_empty_text_validator_with_empty_input(user_input):
      test_error_message = "enter something"
  
      validator = io_utils.not_empty_validator(test_error_message)
  
      document = Document(user_input)
      with pytest.raises(ValidationError) as e:
          validator.validate(document)
  
      assert e.value.message == test_error_message
  
file_path: rasa/tests/utils/test_io.py
imports: from pathlib import Path
  from typing import Dict, Text
  import pytest
  from _pytest.tmpdir import TempPathFactory
  from prompt_toolkit.document import Document
  from prompt_toolkit.validation import ValidationError
  import rasa.shared.utils.io
  import rasa.utils.io
label_desc: Use image node_id 3 for calling a global function with example usage: test_non_empty_text_validator_with_empty_input(user_input) without return types