code: def __init__(self, arch="resnet18", pretrained=True):
      super(ResNet_MS3, self).__init__()
      assert arch in models.keys(), "arch {} not supported".format(arch)
      net = models[arch](pretrained=pretrained)
      # ignore the last block and fc
      self.model = paddle.nn.Sequential(*(list(net.children())[:-2]))
  
file_path: PaddleSeg/contrib/QualityInspector/qinspector/uad/models/stfpm.py
imports: import paddle
  import paddle.nn
  from paddle.vision.models.resnet import resnet18, resnet34, resnet50, resnet101
  from qinspector.cvlib.workspace import register
label_desc: Use image node_id 1 to create a new ResNet_MS3 object from inherited base classes: nn with example: obj = ResNet_MS3(arch, pretrained)