code: def test_data_validate_not_used_warning(
      run_in_simple_project: Callable[..., RunResult],
      request: FixtureRequest,
  ):
      test_data_dir = Path(
          request.config.rootdir, "data", "test_validation", "data"
      )
      test_domain = Path(
          request.config.rootdir,
          "data",
          "test_validation",
          "domain.yml",
      )
      test_config = Path(
          request.config.rootdir, "data", "test_moodbot", "config.yml"
      )
  
      result = run_in_simple_project(
          "data",
          "validate",
          "--data",
          str(test_data_dir),
          "--domain",
          str(test_domain),
          "-c",
          str(test_config),
      )
  
      for warning in [
          "The intent 'goodbye' is not used in any story or rule.",
          "The utterance 'utter_chatter' is not used in any story or rule.",
      ]:
          assert warning in str(result.stderr)
  
file_path: rasa/tests/cli/test_rasa_data.py
imports: import os
  from pathlib import Path
  from typing import Callable
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import RunResult
  from rasa.shared.nlu.training_data.formats import RasaYAMLReader
  import rasa.shared.utils.io
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 9 for calling a global function with example usage: test_data_validate_not_used_warning(run_in_simple_project, request) without return types