code: def add_args(parser):
      group = parser.add_argument_group("ASG Loss")
      group.add_argument(
          "--asg-transitions-init",
          help="initial diagonal value of transition matrix",
          type=float,
          default=0.0,
      )
      group.add_argument(
          "--max-replabel",
          help="maximum # of replabels",
          type=int,
          default=2,
      )
      group.add_argument(
          "--linseg-updates",
          help="# of training updates to use LinSeg initialization",
          type=int,
          default=0,
      )
      group.add_argument(
          "--hide-linseg-messages",
          help="hide messages about LinSeg initialization",
          action="store_true",
      )
  
file_path: fairseq/examples/speech_recognition/criterions/ASG_loss.py
imports: import torch
  from examples.speech_recognition.data.replabels import pack_replabels
  from fairseq import utils
  from fairseq.criterions import FairseqCriterion, register_criterion
label_desc: Use image node_id 1 for calling the ASGCriterion obj's underlying member method code with example usage: obj.add_args(parser) without return types