class_docstr: Compose with two layers 
class_docstr_tok: ["Compose","with","two","layers"]
code: def forward(self, enc_input, slf_attn_mask=None):
      enc_output = self.slf_attn(
          enc_input, enc_input, enc_input, mask=slf_attn_mask
      )
      enc_output = self.pos_ffn(enc_output)
      return enc_output
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import ParamAttr
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.initializer import Normal, XavierNormal
  import numpy
label_desc: Use image node_id 2 for calling the EncoderLayer obj's underlying member method code with example usage: obj.forward(enc_input, slf_attn_mask) and returns: enc_output