def _path_to_release(path):
    """Compatibility function, allows us to use release identifiers like "3.0" and "3.1"
    in the public API, and map these internally into storage path segments."""
    if path == "v3":
        return "3.0"
    elif path.startswith("v3."):
        return path[1:]
    else:
        raise RuntimeError(f"Unexpected release path: {path!r}")