code: def run(testdir: Testdir) -> Callable[..., RunResult]:
      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 1 for calling a global function with example usage: run(testdir) and returns: do_run, testdir