code: def __init__(self, model, sampler, schedule="linear", **kwargs):
      super().__init__()
      self.model = model
      self.ddpm_num_timesteps = model.num_timesteps
      self.schedule = schedule
      assert isinstance(
          sampler, Sampler
      ), "Sampler should be of ENUM type Sampler"
      self.sampler = sampler
  
file_path: NeMo/nemo/collections/multimodal/models/text_to_image/stable_diffusion/samplers/base_sampler.py
imports: from abc import ABC, abstractmethod
  import numpy
  import torch
  from tqdm import tqdm
  from nemo.collections.multimodal.models.text_to_image.stable_diffusion.samplers import Sampler
  from nemo.collections.multimodal.modules.stable_diffusion.diffusionmodules.util import make_ddim_sampling_parameters, make_ddim_timesteps, noise_like
label_desc: Use image node_id 1 to create a new AbstractBaseSampler object from inherited base classes: ABC with example: obj = AbstractBaseSampler(model, sampler, schedule)