code: def _build_training_data_importer(
      args: argparse.Namespace,
  ) -> "TrainingDataImporter":
      config = rasa.cli.utils.get_validated_path(
          args.config, "config", DEFAULT_CONFIG_PATH, none_is_valid=True
      )
  
      # Exit the validation if the domain path is invalid
      domain = rasa.cli.utils.get_validated_path(
          args.domain,
          "domain",
          DEFAULT_DOMAIN_PATH,
          none_is_valid=False,
      )
  
      return TrainingDataImporter.load_from_config(
          domain_path=domain,
          training_data_paths=args.data,
          config_path=config,
      )
  
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 5 for calling a global function with example usage: _build_training_data_importer(args) and returns: TrainingDataImporter