def METHOD_NAME(period=20, rate=0.5):
    def apply(epoch, learning_rate):
        if ((epoch % period) == 0) and (epoch != 0):
            learning_rate = rate * learning_rate
        return learning_rate
    return apply