def METHOD_NAME(
    db: orm.Session, version_id: int
) -> tools_models.DatabaseVersion:
    if version := tools_crud.get_version_by_id(db, version_id):
        return version
    raise fastapi.HTTPException(
        status_code=status.HTTP_404_NOT_FOUND,
        detail={"reason": f"The version with id {version_id} was not found."},
    )