human
I wrote the below code

    def decorator(f):
        min_version = parse_version_string(min_ver)
        if max_ver:
            max_version = parse_version_string(max_ver)
        else:
            max_version = parse_version_string(max_version_string())
        qualified_name = _fully_qualified_name(f)
        VERSIONED_METHODS[qualified_name].append((min_version, max_version, f))
        def decorated_func(req, *args, **kwargs):
            version = req.environ[MICROVERSION_ENVIRON]
            return _find_method(f, version)(req, *args, **kwargs)
        VERSIONED_METHODS[qualified_name].sort(key=(lambda x: x[0]), reverse=True)
        return decorated_func
    return decorator

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

def version_handler(min_ver, max_ver=None):