def METHOD_NAME(self, epoch=None):
    if epoch is None:
        self.last_epoch += self.increment
        self.last_lr = self.get_lr()
    else:
        self.last_epoch += epoch
        if hasattr(self, "_get_closed_form_lr"):
            self.last_lr = self._get_closed_form_lr()
        else:
            self.last_lr = self.get_lr()
    if self.verbose:
        print(
            "Epoch {}: {} set learning rate to {}.".format(self.last_epoch, self.__class__.__name__, self.last_lr)
        )