human
I wrote the below code

    @wraps(f)
    def wrapper(*args, **kwargs):
        try:
            sys.stderr = StringIO()
            f(*args, **kwargs)
        finally:
            sys.stderr = sys.__stderr__
    return wrapper

What's a good function header?

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

def capture_stderr(f):