code: def validator_under_test() -> Validator:
      importer = RasaFileImporter(
          domain_path="data/test_validation/domain.yml",
          training_data_paths=[
              "data/test_validation/data/nlu.yml",
              "data/test_validation/data/stories.yml",
          ],
      )
      validator = Validator.from_importer(importer)
      return validator
  
imports: import textwrap
  import warnings
  from typing import Text
  import pytest
  from _pytest.logging import LogCaptureFixture
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.validator import Validator
  from rasa.shared.importers.rasa import RasaFileImporter
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: validator_under_test() and returns: validator