code: def _add_data_validate_parsers(
      data_subparsers: SubParsersAction,
      parents: List[argparse.ArgumentParser],
  ) -> None:
      validate_parser = data_subparsers.add_parser(
          "validate",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          parents=parents,
          help="Validates domain and data files to check for possible mistakes.",
      )
      _append_story_structure_arguments(validate_parser)
      validate_parser.set_defaults(
          func=lambda args: rasa.cli.utils.validate_files(
              args.fail_on_warnings,
              args.max_history,
              _build_training_data_importer(args),
          )
      )
      arguments.set_validator_arguments(validate_parser)
  
      validate_subparsers = validate_parser.add_subparsers()
      story_structure_parser = validate_subparsers.add_parser(
          "stories",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          parents=parents,
          help="Checks for inconsistencies in the story files.",
      )
      _append_story_structure_arguments(story_structure_parser)
  
      story_structure_parser.set_defaults(
          func=lambda args: rasa.cli.utils.validate_files(
              args.fail_on_warnings,
              args.max_history,
              _build_training_data_importer(args),
              stories_only=True,
          )
      )
      arguments.set_validator_arguments(story_structure_parser)
  
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 4 for calling a global function with example usage: _add_data_validate_parsers(data_subparsers, parents) without return types