<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _deregister(self, session):
 """ Deregister a session. """

        if session in self:
            self._sessions.pop(self._get_session_key(session), None)