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

    def wrapper(self, *args, **kwargs):
        if self.closed:
            raise IOError(errno.EBADF, 'I/O    operation    on    closed    file')
        return func(self, *args, **kwargs)
    return wrapper

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

def require_open(func):