code: def _convert_nlu_data(args: argparse.Namespace) -> None:
      import rasa.nlu.convert
  
      if args.format in ["json", "yaml"]:
          rasa.nlu.convert.convert_training_data(
              args.data, args.out, args.format, args.language
          )
          telemetry.track_data_convert(args.format, "nlu")
      else:
          rasa.shared.utils.cli.print_error_and_exit(
              "Could not recognize output format. Supported output formats: 'json' "
              "and 'yaml'. Specify the desired output format with '--format'."
          )
  
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 9 for calling a global function with example usage: _convert_nlu_data(args) without return types