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

    def error_handler(result):
        (exception_type, exception) = result[:2]
        if ((exception_type is not ProcessTerminated) or (exception.exitCode != expected_exit_code)):
            raise exception
    return error_handler

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

def catch_exit_code(expected_exit_code):