human
I wrote the below code

    def outer(func):
        @functools.wraps(func)
        def wrapped(*args, **kwargs):
            attempt = 0
            while True:
                try:
                    return func(*args, **kwargs)
                except messaging.MessagingTimeout:
                    attempt += 1
                    if (attempt <= retries):
                        LOG.warning(_LW('Retrying    %(name)s    after    a    MessagingTimeout,    attempt    %(attempt)s    of    %(retries)s.'), {'attempt': attempt, 'retries': retries, 'name': func.__name__})
                    else:
                        raise
        return wrapped
    return outer

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def retry_on_timeout(retries=1):