docstr: The forward method inherited from the base class has a **kwargs
  argument in its input, which is not supported in torchscript. This
  method overwrites the forward method definition without **kwargs.
code: def forward(
      self,
      src_tokens,
      src_lengths,
      prev_output_tokens,
      return_all_hiddens=False,
      **kwargs,
  ):
      """
      The forward method inherited from the base class has a **kwargs
      argument in its input, which is not supported in torchscript. This
      method overwrites the forward method definition without **kwargs.
      """
      encoder_out = self.encoder(
          src_tokens=src_tokens, src_lengths=src_lengths, **kwargs
      )
      decoder_out = self.decoder(
          prev_output_tokens=prev_output_tokens, encoder_out=encoder_out
      )
      if return_all_hiddens:
          decoder_out[-1]["encoder_states"] = encoder_out["encoder_out"]
          # NOTE: from the top layer
          decoder_out[-1]["encoder_padding_mask"] = encoder_out[
              "encoder_padding_mask"
          ]
      return decoder_out
  
imports: import copy
  import logging
  from typing import Dict, List, Optional, Tuple
  import numpy
  import torch
  import torch.nn
  from torch import Tensor
  from fairseq import checkpoint_utils, utils
  from fairseq.data.data_utils import lengths_to_padding_mask
  from fairseq.models import FairseqEncoder, FairseqEncoderDecoderModel, FairseqEncoderModel, FairseqLanguageModel, register_model, register_model_architecture
  from fairseq.models.speech_to_speech.modules.ctc_decoder import CTCDecoder
  from fairseq.models.speech_to_text.hub_interface import S2THubInterface
  from fairseq.models.transformer import Embedding, TransformerDecoder, TransformerModelBase
  from fairseq.models.wav2vec import Wav2VecEncoder
  from fairseq.modules.layer_norm import LayerNorm
label_desc: Use image node_id 13 for calling the XMTransformerModel obj's underlying member method code with example usage: obj.forward(src_tokens, src_lengths, prev_output_tokens, return_all_hiddens) and returns: decoder_out