code: def test_rasa_validate_debug_with_errors(
      run: Callable[..., RunResult], request: FixtureRequest
  ):
      # Test captures the subprocess output for the command run
      # validates that the data in 'data/test/test_integration_incorrect'
      # throws cli errors about intent "greet"
      # in 'debug' mode
      err = (
          "UserWarning: The intent 'greet' is listed in the domain file, "
          "but is not found in the NLU training data."
      )
      test_data_dir = Path(
          request.config.rootdir, "data", "test", "test_integration_err"
      )
      test_config_dir = Path(
          request.config.rootdir, "data", "test_config"
      )
      source_file = (test_data_dir).absolute()
      domain_file = (test_data_dir / "domain.yml").absolute()
      config_file = (
          test_config_dir / "config_unique_assistant_id.yml"
      ).absolute()
      result = run(
          "data",
          "validate",
          "--data",
          str(source_file),
          "-d",
          str(domain_file),
          "-c",
          str(config_file),
          "--fail-on-warnings",
          "--debug",
      )
      assert result.ret == 1
      assert err in str(result.stderr)
  
file_path: rasa/tests/integration_tests/core/test_cli_response.py
imports: from pathlib import Path
  import pytest
  from typing import Callable
  import shutil
  from _pytest.pytester import Pytester
  from _pytest.pytester import RunResult
  from _pytest.fixtures import FixtureRequest
label_desc: Use image node_id 3 for calling a global function with example usage: test_rasa_validate_debug_with_errors(run, request) without return types