def METHOD_NAME(compat, **kwargs):
    if not compat:
        return True
    python_version = kwargs.get("python_version")
    if python_version is None:
        python_version = get_python_version_string()
    s = pkg_resources.Requirement.parse("Python" + compat)
    return python_version in s