code: def add_nlp_args(parent_parser: ArgumentParser) -> ArgumentParser:
      """Extends existing argparse with default NLP collection args.
  
      Args:
          parent_parser (ArgumentParser): Custom CLI parser that will be extended.
  
      Returns:
          ArgumentParser: Parser extended by NeMo NLP Collection arguments.
      """
      parser = ArgumentParser(
          parents=[parent_parser],
          add_help=False,
          conflict_handler="resolve",
      )
      parser.add_argument(
          "--data_dir",
          type=str,
          required=False,
          help="data directory to training or/and evaluation dataset",
      )
      parser.add_argument(
          "--config_file",
          type=str,
          required=False,
          default=None,
          help="Huggingface model configuration file",
      )
      parser.add_argument(
          "--pretrained_model_name",
          default="bert-base-uncased",
          type=str,
          required=False,
          help="pretrained model name",
      )
      parser.add_argument(
          "--tokenizer_name",
          default="nemobert",
          type=str,
          choices=["sentencepiece", "nemobert"],
          help="Tokenizer type",
      )
      parser.add_argument(
          "--tokenizer_model",
          default=None,
          type=str,
          help="Tokenizer file for sentence piece",
      )
      parser.add_argument(
          "--do_lower_case",
          action="store_true",
          required=False,
          help="lower case data",
      )
      return parser
  
imports: from argparse import ArgumentParser
  from typing import Any, Dict, List, Optional, Union
label_desc: Use image node_id 4 for calling a global function with example usage: add_nlp_args(parent_parser) and returns: parser