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

        return (self.state == SESSION_STATE.CLOSED 
                or self.state == SESSION_STATE.CLOSING)