code: def add_data_param(
      parser: Union[
          argparse.ArgumentParser, argparse._ActionsContainer
      ],
      default: Optional[Text] = DEFAULT_DATA_PATH,
      required: bool = False,
      data_type: Text = "Rasa ",
  ) -> None:
      parser.add_argument(
          "--data",
          default=default,
          nargs="+",
          type=str,
          help=f"Paths to the files or directories containing {data_type} data.",
          # The desired behaviour is that required indicates if this argument must
          # have a value, but argparse interprets it as "must have a value
          # from user input", so we toggle it only if our default is not set
          required=required and default is None,
      )
  
file_path: rasa/rasa/cli/arguments/default_arguments.py
imports: import argparse
  import logging
  from typing import Text, Union, Optional
  from rasa.shared.constants import DEFAULT_CONFIG_PATH, DEFAULT_DOMAIN_PATH, DEFAULT_MODELS_PATH, DEFAULT_DATA_PATH, DEFAULT_ENDPOINTS_PATH
label_desc: Use image node_id 8 for calling a global function with example usage: add_data_param(parser, default, required, data_type) without return types