def METHOD_NAME():
    all_versions = {"1.0", "1.1", "2.0", "2.1", "3.0", "3.1"}
    unaffected_ranges = [VersionRange.from_scheme_version_spec_string("semver", "< 1.2")]
    affected_ranges = []
    resolved_ranges = [VersionRange.from_scheme_version_spec_string("semver", ">= 3.0")]
    unaffected_versions, affected_versions = categorize_versions(
        all_versions,
        unaffected_ranges,
        affected_ranges,
        resolved_ranges,
    )
    assert len(unaffected_versions) == 4
    assert "1.0" in unaffected_versions
    assert "1.1" in unaffected_versions
    assert "3.0" in unaffected_versions
    assert "3.1" in unaffected_versions
    assert len(affected_versions) == 2
    assert "2.0" in affected_versions
    assert "2.1" in affected_versions