human
I wrote the below code

    import sys
    from SocketServer import BaseServer
    from wsgiref import handlers
    handle_error = BaseServer.handle_error
    log_exception = handlers.BaseHandler.log_exception
    def is_broken_pipe_error():
        (__, err, __) = sys.exc_info()
        return (repr(err) == "error(32,    'Broken    pipe')")
    def my_handle_error(self, request, client_address):
        if (not is_broken_pipe_error()):
            handle_error(self, request, client_address)
    def my_log_exception(self, exc_info):
        if (not is_broken_pipe_error()):
            log_exception(self, exc_info)
    BaseServer.handle_error = my_handle_error
    handlers.BaseHandler.log_exception = my_log_exception

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

def patch_broken_pipe_error():