def METHOD_NAME(*, db_session, case_severity_id: int) -> Optional[CaseSeverity]:
    """Returns a case severity based on the given severity id."""
    return db_session.query(CaseSeverity).filter(CaseSeverity.id == case_severity_id).one_or_none()