code: def test_example_bot_training_on_initial_project(tmp_path: Path):
      # we need to test this one separately, as we can't test it in place
      # configuration suggestions would otherwise change the initial file
      scaffold.create_initial_project(str(tmp_path))
  
      importer = TrainingDataImporter.load_from_config(
          str(tmp_path / "config.yml"),
          str(tmp_path / "domain.yml"),
          str(tmp_path / "data"),
      )
  
      with warnings.catch_warnings() as record:
          importer.get_nlu_data()
          importer.get_stories()
  
      if record is not None:
          records = filter_expected_warnings(record)
          assert len(records) == 0
  
file_path: rasa/tests/examples/test_example_bots_training_data.py
imports: import warnings
  from pathlib import Path
  from typing import Optional, Text
  import pytest
  from rasa.cli import scaffold
  from rasa.shared.importers.importer import TrainingDataImporter
  from tests.conftest import filter_expected_warnings
label_desc: Use image node_id 2 for calling a global function with example usage: test_example_bot_training_on_initial_project(tmp_path) without return types