human
I wrote the below code

    def wrapper(*args, **kwargs):
        for i in range(n_attempts):
            try:
                return f(*args, **kwargs)
            except Exception as e:
                if (i == (n_attempts - 1)):
                    raise
    return wrapper

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

def retry(f, n_attempts=3):