code: def forward(self, x):
      x = self.conv1(x)
      x = self.bn1(x)
      x = self.relu(x)
      x = self.maxpool(x)
  
      blocks = []
      x = self.layer1(x)
      blocks.append(x)
      x = self.layer2(x)
      blocks.append(x)
      x = self.layer3(x)
      blocks.append(x)
      x = self.layer4(x)
      blocks.append(x)
  
      return blocks
  
imports: import paddle.nn
  from paddleseg.utils import utils
  from paddleseg.models import layers
  from paddleseg.cvlibs import manager
label_desc: Use image node_id 4 for calling the ResNet obj's underlying member method code with example usage: obj.forward(x) and returns: blocks