human
I wrote the below code

    @functools.wraps(fun)
    def wrapper(self, *args, **kwargs):
        try:
            return fun(self, *args, **kwargs)
        except OSError as err:
            if (err.errno in ACCESS_DENIED_ERRSET):
                raise AccessDenied(self.pid, self._name)
            if (err.errno == errno.ESRCH):
                raise NoSuchProcess(self.pid, self._name)
            raise
    return wrapper

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

def wrap_exceptions(fun):