code: def run_in_simple_project_with_no_domain(
      testdir: Testdir,
  ) -> Callable[..., RunResult]:
      os.environ["LOG_LEVEL"] = "WARNING"
  
      create_simple_project(testdir.tmpdir)
      Path(testdir.tmpdir / "domain.yml").unlink()
  
      def do_run(*args):
          args = [shutil.which(RASA_EXE)] + list(args)
          return testdir.run(*args)
  
      return do_run
  
file_path: rasa/tests/cli/conftest.py
imports: from pathlib import Path
  from subprocess import check_call
  from typing import Callable, Text
  import pytest
  import shutil
  import os
  from pytest import TempdirFactory, Testdir
  from _pytest.pytester import RunResult
  from rasa.cli import scaffold
  from rasa.shared.utils.io import write_yaml
label_desc: Use image node_id 8 for calling a global function with example usage: run_in_simple_project_with_no_domain(testdir) and returns: do_run, testdir