class_docstr: Anneals the learning rate.
docstr: Auxiliary function for checking the values in the checkpoint and
  setting them.
docstr_tok: ["Auxiliary","function","for","checking","the","values","in","the","checkpoint","and","setting","them","."]
code: def _check_and_set(self, cls_value, sd_value, name):
      """Auxiliary function for checking the values in the checkpoint and
      setting them."""
      if self.override_lr_scheduler:
          return cls_value
  
      if not self.use_checkpoint_lr_scheduler:
          assert cls_value == sd_value, (
              f"AnnealingLR: class input value {cls_value} and checkpoint"
              f"value {sd_value} for {name} do not match"
          )
      return sd_value
  
file_path: colossalai/examples/tutorial/sequence_parallel/lr_scheduler/annealing_lr.py
imports: import math
label_desc: Use image node_id 5 for calling the AnnealingLR obj's underlying member method code with example usage: obj._check_and_set(cls_value, sd_value, name) and returns: sd_value, cls_value