code: def __init__(self, d_model, **kargs):
      nn.Module.__init__(self)
      self.attn = MultiHeadSeqAttention(d_model=d_model, **kargs)
      self.norm1 = LayerNorm(d_model)
      self.ff = FeedForwardLayer(d_model=d_model, **kargs)
      self.norm2 = LayerNorm(d_model)
  
imports: import math
  import torch
  import torch.nn
  import torch.nn.functional
  from fairseq.modules.layer_norm import LayerNorm
  from .adaptive_span_attention import AdaptiveSpan
label_desc: Use image node_id 1 to create a new TransformerSeqLayer object from inherited base classes: nn with example: obj = TransformerSeqLayer(d_model)