class_docstr: STACL: Simultaneous Translation with Implicit Anticipation and
  Controllable Latency using Prefix-to-Prefix Framework
  https://www.aclweb.org/anthology/P19-1289/
class_docstr_tok: ["STACL",":","Simultaneous","Translation","with","Implicit","Anticipation","and","Controllable","Latency","using","Prefix-to-Prefix","Framework","https",":","\/\/www.aclweb.org\/anthology\/P19-1289\/"]
code: def add_args(parser):
      super(
          MonotonicInfiniteLookbackAttention,
          MonotonicInfiniteLookbackAttention,
      ).add_args(parser)
  
      parser.add_argument(
          "--waitk-lagging",
          type=int,
          required=True,
          help="Wait K lagging",
      )
  
imports: import math
  import torch
  from torch import Tensor
  import torch.nn
  from examples.simultaneous_translation.utils.p_choose_strategy import learnable_p_choose, waitk_p_choose
  from examples.simultaneous_translation.utils.monotonic_attention import expected_alignment_from_p_choose, expected_soft_attention, mass_preservation
  from fairseq.modules import MultiheadAttention
  from .None import register_monotonic_attention
  from typing import Dict, Optional
label_desc: Use image node_id 2 for calling the WaitKAttention obj's underlying member method code with example usage: obj.add_args(parser) without return types