class_docstr: Callback that loads the model weights from the state dict.
code: def __init__(self, weights_path) -> None:
      self.weights_path = weights_path
  
file_path: anomalib/src/anomalib/utils/callbacks/model_loader.py
imports: from __future__ import annotations
  import logging
  import torch
  from pytorch_lightning import Callback, Trainer
  from anomalib.models.components import AnomalyModule
label_desc: Use image node_id 1 to create a new LoadModelCallback object from inherited base classes: Callback with example: obj = LoadModelCallback(weights_path)