code: def forward(self, x):
      res = []
      with paddle.no_grad():
          x = self.model.conv1(x)
          x = self.model.bn1(x)
          x = self.model.relu(x)
          x = self.model.maxpool(x)
          x = self.model.layer1(x)
          res.append(x)
          x = self.model.layer2(x)
          res.append(x)
          x = self.model.layer3(x)
          res.append(x)
      return res
  
file_path: PaddleSeg/contrib/QualityInspector/qinspector/uad/models/padim.py
imports: import paddle
  import paddle.nn
  from paddle.vision.models.resnet import resnet18, resnet50, wide_resnet50_2
  from qinspector.cvlib.workspace import register
label_desc: Use image node_id 2 for calling the ResNet_PaDiM obj's underlying member method code with example usage: obj.forward(x) and returns: res