code: def generate_roughly_equally_spaced_steps(
      num_substeps: int, max_step: int
  ) -> np.ndarray:
      return np.linspace(
          max_step - 1, 0, num_substeps, endpoint=False
      ).astype(int)[::-1]
  
file_path: generative-models/sgm/modules/diffusionmodules/discretizer.py
imports: from abc import abstractmethod
  from functools import partial
  import numpy
  import torch
  from ...modules.diffusionmodules.util import make_beta_schedule
  from ...util import append_zero
label_desc: Use image node_id 1 for calling a global function with example usage: generate_roughly_equally_spaced_steps(num_substeps, max_step) and returns: np