code: def __init__(self, model, **kwargs):
      super().__init__()
      self.model = model
      to_torch = (
          lambda x: x.clone()
          .detach()
          .to(torch.float32)
          .to(model.device)
      )
      self.before_sample = None
      self.after_sample = None
      self.register_buffer(
          "alphas_cumprod", to_torch(model.alphas_cumprod)
      )
  
file_path: stable-diffusion-webui/modules/models/diffusion/uni_pc/sampler.py
imports: import torch
  from .uni_pc import NoiseScheduleVP, model_wrapper, UniPC
  from modules import shared, devices
label_desc: Use image node_id 1 to create a new UniPCSampler object from inherited base classes: object with example: obj = UniPCSampler(model)