code: def __init__(self, arch="resnet18", pretrained=True):
      super(ResNet_PaDiM, self).__init__()
      assert arch in models.keys(), "arch {} not supported".format(arch)
      self.model = models[arch](pretrained)
  
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 1 to create a new ResNet_PaDiM object from inherited base classes: nn with example: obj = ResNet_PaDiM(arch, pretrained)