code: def __init__(
      self,
      discretization_config,
      num_idx,
      do_append_zero=False,
      flip=True,
  ):
      self.num_idx = num_idx
      self.sigmas = instantiate_from_config(discretization_config)(
          num_idx, do_append_zero=do_append_zero, flip=flip
      )
  
file_path: generative-models/sgm/modules/diffusionmodules/sigma_sampling.py
imports: import torch
  from ...util import default, instantiate_from_config
label_desc: Use image node_id 1 to create a new DiscreteSampling object  with example: obj = DiscreteSampling(discretization_config, num_idx, do_append_zero, flip)