def get_major_release(version: str) -> str:
    """
    Return the major release for a version. The major release for 1.17 and
    1.17.1 is 1.17.
    """
    if not len(version.split(".")) >= 2:
        raise ValueError(f"version not in expected format: '{version}'")
    return ".".join(version.split(".")[:2])