def METHOD_NAME(optimizer,
                 scheduler,
                 num_cycles: float = 0.5,
                 last_epoch: int = -1):
    num_warmup_steps = int(scheduler.warmup_proportion
                           * scheduler.num_train_steps)
    num_training_steps = scheduler.num_train_steps
    return LambdaLR(
        optimizer,
        partial(lr_lambda, num_warmup_steps, num_training_steps, num_cycles),
        last_epoch)