human
I wrote the below code

    if (not thread):
        return func
    @functools.wraps(func)
    def decorator(*args):
        key = threading_setup()
        try:
            return func(*args)
        finally:
            threading_cleanup(*key)
    return decorator

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

def reap_threads(func):