code: def forward(self, inputs, mask):
      mask_bool = mask.clone()
      mask_bool = mask_bool.bool()
      mask_bool = ~mask_bool
      inputs = inputs.permute(1, 0, 2)
      output = self.transformer_encoder(
          inputs, src_key_padding_mask=mask_bool
      )
      output = output[0]  # take the CLS
      if self.proj is not None:
          output = self.proj(output)
      return output
  
imports: from torch import nn
label_desc: Use image node_id 2 for calling the TransformerPooling obj's underlying member method code with example usage: obj.forward(inputs, mask) and returns: output