def METHOD_NAME(cls, *args, **kwargs):
    """
    A decorator that may be used to wrap a function to be retried using
    this policy.
    """
    retrier = cls(*args, **kwargs)
    def decorator(fn):
        @functools.wraps(fn)
        def execute_with_retry(*args, **kwargs):
            return retrier(functools.partial(fn, *args, **kwargs))
        return execute_with_retry
    return decorator