<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def by_user_name(cls, username):
 """Return the user object whose user name is ``username``."""

        return DBSession.query(cls).filter_by(user_name=username).first()