def METHOD_NAME(self, cls_value, sd_value, name):
    """Auxiliary function for checking the values in the checkpoint and
    setting them."""
    if self.override_lr_scheduler:
        if smp.rank() == 0:
            print("Overriding {} value to {}".format(name, cls_value))
        return cls_value
    if not self.use_checkpoint_lr_scheduler:
        assert (
            cls_value == sd_value
        ), "AnnealingLR: class input value" "and checkpoint values for {} do not match".format(
            name
        )
    if smp.rank() == 0:
        print(" > using checkpoint value {} for {}".format(sd_value, name))
    return sd_value