code: def __init__(self, model, schedule="linear", **kwargs):
      super().__init__()
      self.model = model
      self.ddpm_num_timesteps = model.num_timesteps
      self.schedule = schedule
  
file_path: ColossalAI/examples/images/diffusion/ldm/models/diffusion/ddim.py
imports: import numpy
  import torch
  from ldm.modules.diffusionmodules.util import extract_into_tensor, make_ddim_sampling_parameters, make_ddim_timesteps, noise_like
  from tqdm import tqdm
label_desc: Use image node_id 1 to create a new DDIMSampler object from inherited base classes: object with example: obj = DDIMSampler(model, schedule)