code: def test_data_split_nlu(
      run_in_simple_project: Callable[..., RunResult]
  ):
      responses_yml = (
          "responses:\n"
          "  chitchat/ask_name:\n"
          "  - text: my name is Sara, Rasa's documentation bot!\n"
          "  chitchat/ask_weather:\n"
          "  - text: the weather is great!\n"
      )
  
      with open("data/responses.yml", "w") as f:
          f.write(responses_yml)
  
      run_in_simple_project(
          "data",
          "split",
          "nlu",
          "-u",
          "data/nlu.yml",
          "--training-fraction",
          "0.75",
          "--random-seed",
          "12345",
      )
  
      folder = Path("train_test_split")
      assert folder.exists()
  
      nlu_files = [
          folder / "test_data.yml",
          folder / "training_data.yml",
      ]
      nlg_files = [
          folder / "nlg_test_data.yml",
          folder / "nlg_training_data.yml",
      ]
      for yml_file in nlu_files:
          assert yml_file.exists(), f"{yml_file} file does not exist"
          nlu_data = rasa.shared.utils.io.read_yaml_file(yml_file)
          assert "version" in nlu_data
          assert nlu_data.get("nlu")
  
      for yml_file in nlg_files:
          assert yml_file.exists(), f"{yml_file} file does not exist"
  
file_path: rasa/tests/cli/test_rasa_data.py
imports: import os
  from pathlib import Path
  from typing import Callable
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import RunResult
  from rasa.shared.nlu.training_data.formats import RasaYAMLReader
  import rasa.shared.utils.io
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 1 for calling a global function with example usage: test_data_split_nlu(run_in_simple_project) without return types