code: def __init__(self, learn_rate, max_steps, cur_step=0, verbose=True):
      self.schedules = LearnScheduleIterator(
          learn_rate, max_steps, cur_step
      )
      (self.learn_rate, self.end_step) = next(self.schedules)
      self.verbose = verbose
  
      if self.verbose:
          print(
              f"Training at rate of {self.learn_rate} until step {self.end_step}"
          )
  
      self.finished = False
  
file_path: stable-diffusion-webui/modules/textual_inversion/learn_schedule.py
imports: import tqdm
label_desc: Use image node_id 1 to create a new LearnRateScheduler object  with example: obj = LearnRateScheduler(learn_rate, max_steps, cur_step, verbose)