class_docstr: GAN-based Singing-voice-synthesis task.
code: def add_task_arguments(cls, parser: argparse.ArgumentParser):
      # NOTE(kamo): Use '_' instead of '-' to avoid confusion
      assert check_argument_types()
      group = parser.add_argument_group(description="Task related")
  
      # NOTE(kamo): add_arguments(..., required=True) can't be used
      # to provide --print_config mode. Instead of it, do as
      required = parser.get_default("required")
      required += ["token_list"]
  
      group.add_argument(
          "--token_list",
          type=str_or_none,
          default=None,
          help="A text mapping int-id to token",
      )
      group.add_argument(
          "--odim",
          type=int_or_none,
          default=None,
          help="The number of dimension of output feature",
      )
      group.add_argument(
          "--model_conf",
          action=NestedDictAction,
          default=get_default_kwargs(ESPnetGANSVSModel),
          help="The keyword arguments for model class.",
      )
  
      group = parser.add_argument_group(
          description="Preprocess related"
      )
      group.add_argument(
          "--use_preprocessor",
          type=str2bool,
          default=True,
          help="Apply preprocessing to data or not",
      )
      group.add_argument(
          "--token_type",
          type=str,
          default="phn",
          choices=["bpe", "char", "word", "phn"],
          help="The text will be tokenized in the specified level token",
      )
      group.add_argument(
          "--bpemodel",
          type=str_or_none,
          default=None,
          help="The model file of sentencepiece",
      )
      parser.add_argument(
          "--non_linguistic_symbols",
          type=str_or_none,
          help="non_linguistic_symbols file path",
      )
      parser.add_argument(
          "--cleaner",
          type=str_or_none,
          choices=[
              None,
              "tacotron",
              "jaconv",
              "vietnamese",
              "korean_cleaner",
          ],
          default=None,
          help="Apply text cleaning",
      )
      parser.add_argument(
          "--g2p",
          type=str_or_none,
          choices=g2p_choices,
          default=None,
          help="Specify g2p method if --token_type=phn",
      )
  
      parser.add_argument(
          "--fs",
          type=int,
          default=24000,  # BUG: another fs in feats_extract_conf
          help="sample rate",
      )
  
      for class_choices in cls.class_choices_list:
          # Append --<name> and --<name>_conf.
          # e.g. --encoder and --encoder_conf
          class_choices.add_arguments(group)
  
imports: import argparse
  import logging
  from typing import Callable, Collection, Dict, List, Optional, Tuple
  import numpy
  import torch
  from typeguard import check_argument_types, check_return_type
  from espnet2.gan_svs.abs_gan_svs import AbsGANSVS
  from espnet2.gan_svs.espnet_model import ESPnetGANSVSModel
  from espnet2.gan_svs.joint import JointScore2Wav
  from espnet2.gan_svs.vits import VITS
  from espnet2.layers.abs_normalize import AbsNormalize
  from espnet2.layers.global_mvn import GlobalMVN
  from espnet2.layers.utterance_mvn import UtteranceMVN
  from espnet2.svs.feats_extract.score_feats_extract import FrameScoreFeats, SyllableScoreFeats
  from espnet2.tasks.abs_task import AbsTask, optim_classes
  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.gan_trainer import GANTrainer
  from espnet2.train.preprocessor import SVSPreprocessor
  from espnet2.tts.feats_extract.abs_feats_extract import AbsFeatsExtract
  from espnet2.tts.feats_extract.dio import Dio
  from espnet2.tts.feats_extract.energy import Energy
  from espnet2.tts.feats_extract.linear_spectrogram import LinearSpectrogram
  from espnet2.tts.feats_extract.log_mel_fbank import LogMelFbank
  from espnet2.tts.feats_extract.log_spectrogram import LogSpectrogram
  from espnet2.tts.feats_extract.ying import Ying
  from espnet2.utils.get_default_kwargs import get_default_kwargs
  from espnet2.utils.nested_dict_action import NestedDictAction
  from espnet2.utils.types import int_or_none, str2bool, str_or_none
label_desc: Use image node_id 1 for calling the GANSVSTask obj's underlying member method code with example usage: obj.add_task_arguments(cls, parser) without return types