code: def forward(self, inputs):
      x = self.conv1(inputs)
      x = self.bn1(x)
      x = self.conv2(x)
      x = self.bn2(x)
      x_pooled = self.pool(x)
      return x, x_pooled
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import nn
  import numpy
  import cv2
label_desc: Use image node_id 2 for calling the Encoder obj's underlying member method code with example usage: obj.forward(inputs) and returns: x,  x_pooled