code: def trained_simple_project(tmpdir_factory: TempdirFactory) -> Text:
      path = tmpdir_factory.mktemp("simple")
      create_simple_project(path)
  
      os.environ["LOG_LEVEL"] = "ERROR"
  
      check_call([shutil.which(RASA_EXE), "train"], cwd=path.strpath)
  
      return path.strpath
  
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 5 for calling a global function with example usage: trained_simple_project(tmpdir_factory) and returns: path