async def METHOD_NAME(id: int, db: Session = Depends(database.get_db)):
    """
    Get a user from the database by their ID.
    Args:
        id (int): The ID of the user to retrieve.
        db (Session, optional): The database session. Defaults to Depends(database.get_db).
    Returns:
        user_schemas.UserOut: The user with the given ID.
    Raises:
        HTTPException: If the user is not found.
    """
    user = user_crud.get_user(db, user_id=id)
    if user:
        user.role = user.role.name
        return user
    else:
        raise HTTPException(status_code=404, detail="User not found")