def METHOD_NAME(self, trainer):
    # forward compatibility with AddLrLogHook in EasyCV
    if not hasattr(self, 'processor'):
        self.processor = LrSchedulerProcessor()
    cur_lr = self.processor.get_current_lr(trainer)
    # only record lr of the first param group
    if isinstance(cur_lr, list):
        lr = cur_lr[0]
    else:
        assert isinstance(cur_lr, dict)
        lr = {}
        for k, lr_ in cur_lr.items():
            assert isinstance(lr_, list)
            lr.update({k: lr_[0]})
    return lr