code: def test_data_validate_failed_to_load_domain(
      run_in_simple_project_with_no_domain: Callable[..., RunResult]
  ):
      result = run_in_simple_project_with_no_domain(
          "data",
          "validate",
          "--domain",
          "not-existing-domain.yml",
      )
  
      assert (
          "The path 'not-existing-domain.yml' does not exist."
          in str(result.outlines)
      )
      assert result.ret == 1
  
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 10 for calling a global function with example usage: test_data_validate_failed_to_load_domain(run_in_simple_project_with_no_domain) without return types