<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_current_session(cls):

 """ Returns current user session """

        session = Session.current_session()
        if session is None:
            return None
        return cls.where_id(session.user_id)