class_docstr: ASR Transducer Task definition.
class_docstr_tok: ["ASR","Transducer","Task","definition","."]
docstr: Add Transducer task arguments.
  
  Args:
      cls: ASRTransducerTask object.
      parser: Transducer arguments parser.
docstr_tok: ["Add","Transducer","task","arguments",".","Args",":","cls",":","ASRTransducerTask","object",".","parser",":","Transducer","arguments","parser","."]
code: def add_task_arguments(cls, parser: argparse.ArgumentParser):
      """Add Transducer task arguments.
  
      Args:
          cls: ASRTransducerTask object.
          parser: Transducer arguments parser.
  
      """
      group = parser.add_argument_group(description="Task related.")
  
      required = parser.get_default("required")
      required += ["token_list"]
  
      group.add_argument(
          "--token_list",
          type=str_or_none,
          default=None,
          help="Integer-string mapper for tokens.",
      )
      group.add_argument(
          "--input_size",
          type=int_or_none,
          default=None,
          help="The number of dimensions for input features.",
      )
      group.add_argument(
          "--init",
          type=str_or_none,
          default=None,
          help="Type of model initialization to use.",
      )
      group.add_argument(
          "--model_conf",
          action=NestedDictAction,
          default=get_default_kwargs(ESPnetASRTransducerModel),
          help="The keyword arguments for the model class.",
      )
      group.add_argument(
          "--encoder_conf",
          action=NestedDictAction,
          default={},
          help="The keyword arguments for the encoder class.",
      )
      group.add_argument(
          "--joint_network_conf",
          action=NestedDictAction,
          default={},
          help="The keyword arguments for the joint network class.",
      )
  
      group = parser.add_argument_group(
          description="Preprocess related."
      )
  
      group.add_argument(
          "--use_preprocessor",
          type=str2bool,
          default=True,
          help="Whether to apply preprocessing to input data.",
      )
      group.add_argument(
          "--token_type",
          type=str,
          default="bpe",
          choices=["bpe", "char", "word", "phn"],
          help="The type of tokens to use during tokenization.",
      )
      group.add_argument(
          "--bpemodel",
          type=str_or_none,
          default=None,
          help="The path of the sentencepiece model.",
      )
      group.add_argument(
          "--non_linguistic_symbols",
          type=str_or_none,
          help="The 'non_linguistic_symbols' file path.",
      )
      group.add_argument(
          "--cleaner",
          type=str_or_none,
          choices=[None, "tacotron", "jaconv", "vietnamese"],
          default=None,
          help="Text cleaner to use.",
      )
      group.add_argument(
          "--g2p",
          type=str_or_none,
          choices=g2p_choices,
          default=None,
          help="g2p method to use if --token_type=phn.",
      )
      group.add_argument(
          "--speech_volume_normalize",
          type=float_or_none,
          default=None,
          help="Normalization value for maximum amplitude scaling.",
      )
      group.add_argument(
          "--rir_scp",
          type=str_or_none,
          default=None,
          help="The RIR SCP file path.",
      )
      group.add_argument(
          "--rir_apply_prob",
          type=float,
          default=1.0,
          help="The probability of the applied RIR convolution.",
      )
      group.add_argument(
          "--noise_scp",
          type=str_or_none,
          default=None,
          help="The path of noise SCP file.",
      )
      group.add_argument(
          "--noise_apply_prob",
          type=float,
          default=1.0,
          help="The probability of the applied noise addition.",
      )
      group.add_argument(
          "--noise_db_range",
          type=str,
          default="13_15",
          help="The range of the noise decibel level.",
      )
  
      for class_choices in cls.class_choices_list:
          # Append --<name> and --<name>_conf.
          # e.g. --decoder and --decoder_conf
          class_choices.add_arguments(group)
  
imports: import argparse
  import logging
  import os
  from typing import Callable, Collection, Dict, List, Optional, Tuple
  import numpy
  import torch
  from typeguard import check_argument_types, check_return_type
  from espnet2.asr.frontend.abs_frontend import AbsFrontend
  from espnet2.asr.frontend.default import DefaultFrontend
  from espnet2.asr.frontend.windowing import SlidingWindow
  from espnet2.asr.specaug.abs_specaug import AbsSpecAug
  from espnet2.asr.specaug.specaug import SpecAug
  from espnet2.asr_transducer.decoder.abs_decoder import AbsDecoder
  from espnet2.asr_transducer.decoder.mega_decoder import MEGADecoder
  from espnet2.asr_transducer.decoder.rnn_decoder import RNNDecoder
  from espnet2.asr_transducer.decoder.rwkv_decoder import RWKVDecoder
  from espnet2.asr_transducer.decoder.stateless_decoder import StatelessDecoder
  from espnet2.asr_transducer.encoder.encoder import Encoder
  from espnet2.asr_transducer.espnet_transducer_model import ESPnetASRTransducerModel
  from espnet2.asr_transducer.joint_network import JointNetwork
  from espnet2.layers.abs_normalize import AbsNormalize
  from espnet2.layers.global_mvn import GlobalMVN
  from espnet2.layers.utterance_mvn import UtteranceMVN
  from espnet2.tasks.abs_task import AbsTask
  from espnet2.text.phoneme_tokenizer import g2p_choices
  from espnet2.train.class_choices import ClassChoices
  from espnet2.train.collate_fn import CommonCollateFn
  from espnet2.train.preprocessor import CommonPreprocessor
  from espnet2.train.trainer import Trainer
  from espnet2.utils.get_default_kwargs import get_default_kwargs
  from espnet2.utils.nested_dict_action import NestedDictAction
  from espnet2.utils.types import float_or_none, int_or_none, str2bool, str_or_none
label_desc: Use image node_id 1 for calling the ASRTransducerTask obj's underlying member method code with example usage: obj.add_task_arguments(cls, parser) without return types