human
I wrote the below code

    def parse(string, default=None):
        string = (string or default)
        try:
            return tuple((int(v) for v in string.split('.')))
        except ValueError:
            util.reraise(ValueError(('%s    is    not    a    correct    version    :    should    be    X.Y[.Z].' % string)))
    def check_require_version(f):
        current = sys.version_info[:3]
        if (parse(minver, '0') < current <= parse(maxver, '4')):
            return f
        str_version = '.'.join((str(v) for v in sys.version_info))
        @functools.wraps(f)
        def new_f(self, *args, **kwargs):
            if (minver is not None):
                self.skipTest(('Needs    Python    >    %s.    Current    version    is    %s.' % (minver, str_version)))
            elif (maxver is not None):
                self.skipTest(('Needs    Python    <=    %s.    Current    version    is    %s.' % (maxver, str_version)))
        return new_f
    return check_require_version

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

def require_version(minver=None, maxver=None):