class_docstr: ASR Transducer Task definition.
class_docstr_tok: ["ASR","Transducer","Task","definition","."]
docstr: Optional data depending on task mode.
  
  Args:
      cls: ASRTransducerTask object.
      train: Training mode.
      inference: Inference mode.
  
  Return:
      retval: Optional task data.
docstr_tok: ["Optional","data","depending","on","task","mode",".","Args",":","cls",":","ASRTransducerTask","object",".","train",":","Training","mode",".","inference",":","Inference","mode",".","Return",":","retval",":","Optional","task","data","."]
code: def optional_data_names(
      cls, train: bool = True, inference: bool = False
  ) -> Tuple[str, ...]:
      """Optional data depending on task mode.
  
      Args:
          cls: ASRTransducerTask object.
          train: Training mode.
          inference: Inference mode.
  
      Return:
          retval: Optional task data.
  
      """
      retval = ()
      assert check_return_type(retval)
  
      return retval
  
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 5 for calling the ASRTransducerTask obj's underlying member method code with example usage: obj.optional_data_names(cls, train, inference) and returns: retval