human
I wrote the below code

    def inner():
        try:
            return func(*args, **kwargs)
        except BaseException as err:
            return err
    resp = tpool.execute(inner)
    if isinstance(resp, BaseException):
        raise resp
    return resp

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

def tpool_reraise(func, *args, **kwargs):