code: def add_transducer_arguments(group: _ArgumentGroup) -> _ArgumentGroup:
      """Define general arguments for Transducer model."""
      group.add_argument(
          "--transducer-weight",
          default=1.0,
          type=float,
          help="Weight of main Transducer loss.",
      )
      group.add_argument(
          "--joint-dim",
          default=320,
          type=int,
          help="Number of dimensions in joint space",
      )
      group.add_argument(
          "--joint-activation-type",
          type=str,
          default="tanh",
          choices=["relu", "tanh", "swish"],
          help="Joint network activation type",
      )
      group.add_argument(
          "--score-norm",
          type=strtobool,
          nargs="?",
          default=True,
          help="Normalize Transducer scores by length",
      )
      group.add_argument(
          "--fastemit-lambda",
          default=0.0,
          type=float,
          help="Regularization parameter for FastEmit (https://arxiv.org/abs/2010.11148)",
      )
  
      return group
  
file_path: espnet/espnet/nets/pytorch_backend/transducer/arguments.py
imports: import ast
  from argparse import _ArgumentGroup
  from distutils.util import strtobool
label_desc: Use image node_id 8 for calling a global function with example usage: add_transducer_arguments(group) and returns: group