code: def run(pytester: Pytester) -> Callable[..., RunResult]:
      def do_run(*args):
          args = [shutil.which("rasa")] + list(args)
          return pytester.run(*args)
  
      return do_run
  
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 1 for calling a global function with example usage: run(pytester) and returns: do_run, pytester