human
Here's a good function header given the following:
I wrote the below code

    future = Future()
    def handle_exception(typ, value, tb):
        if future.done():
            return False
        future.set_exc_info((typ, value, tb))
        return True
    def set_result(result):
        if future.done():
            return
        future.set_result(result)
    with stack_context.ExceptionStackContext(handle_exception):
        func(callback=_argument_adapter(set_result), *args, **kwargs)
    return future

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

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