code: def test_init_using_init_dir_option(
      run_with_stdin: Callable[..., RunResult]
  ):
      os.makedirs("./workspace")
      run_with_stdin(
          "init", "--quiet", "--init-dir", "./workspace", stdin=b"N"
      )  # avoid training an initial model
  
      required_files = [
          "actions/__init__.py",
          "actions/actions.py",
          "domain.yml",
          "config.yml",
          "credentials.yml",
          "endpoints.yml",
          "data/nlu.yml",
          "data/stories.yml",
          "data/rules.yml",
      ]
      assert all(
          (Path("workspace") / file).exists() for file in required_files
      )
  
      # ./__init__.py does not exist anymore
      assert not (Path("workspace") / "__init__.py").exists()
  
file_path: rasa/tests/cli/test_rasa_init.py
imports: import argparse
  import os
  from pathlib import Path
  from typing import Callable
  from _pytest.pytester import RunResult
  from _pytest.monkeypatch import MonkeyPatch
  from rasa.cli import scaffold
  from tests.conftest import enable_cache
  from tests.core.channels.test_cmdline import mock_stdin
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 1 for calling a global function with example usage: test_init_using_init_dir_option(run_with_stdin) without return types