code: def split_nlu_data(args: argparse.Namespace) -> None:
      """Load data from a file path and split the NLU data into test and train examples.
  
      Args:
          args: Commandline arguments
      """
      data_path = rasa.cli.utils.get_validated_path(
          args.nlu, "nlu", DEFAULT_DATA_PATH
      )
      data_path = rasa.shared.data.get_nlu_directory(data_path)
  
      nlu_data = rasa.shared.nlu.training_data.loading.load_data(
          data_path
      )
      extension = (
          rasa.shared.nlu.training_data.util.get_file_format_extension(
              data_path
          )
      )
  
      train, test = nlu_data.train_test_split(
          args.training_fraction, args.random_seed
      )
  
      train.persist(args.out, filename=f"training_data{extension}")
      test.persist(args.out, filename=f"test_data{extension}")
  
      telemetry.track_data_split(args.training_fraction, "nlu")
  
imports: import argparse
  import logging
  import pathlib
  from typing import List
  import rasa.shared.core.domain
  from rasa import telemetry
  from rasa.cli import SubParsersAction
  from rasa.cli.arguments import data
  from rasa.cli.arguments import default_arguments
  import rasa.cli.utils
  from rasa.shared.constants import DEFAULT_DATA_PATH, DEFAULT_CONFIG_PATH, DEFAULT_DOMAIN_PATH
  import rasa.shared.data
  from rasa.shared.importers.importer import TrainingDataImporter
  import rasa.shared.nlu.training_data.loading
  import rasa.shared.nlu.training_data.util
  import rasa.shared.utils.cli
  import rasa.utils.common
  import rasa.shared.utils.io
label_desc: Use image node_id 7 for calling a global function with example usage: split_nlu_data(args) without return types