code: def __init__(self, cfg_model, extra_args, callback, *args, **kwargs):
      super().__init__(None, *args, **kwargs)
  
      def after_update(x, model_x):
          callback(
              {
                  "x": x,
                  "i": self.index,
                  "sigma": 0,
                  "sigma_hat": 0,
                  "denoised": model_x,
              }
          )
          self.index += 1
  
      self.cfg_model = cfg_model
      self.extra_args = extra_args
      self.callback = callback
      self.index = 0
      self.after_update = after_update
  
file_path: stable-diffusion-webui/modules/sd_samplers_timesteps_impl.py
imports: import torch
  import tqdm
  import k_diffusion.sampling
  import numpy
  from modules import shared
  from modules.models.diffusion.uni_pc import uni_pc
label_desc: Use image node_id 1 to create a new UniPCCFG object from inherited base classes: uni_pc with example: obj = UniPCCFG(cfg_model, extra_args, callback)