code: def get_last_status_in_session(self, session):
          
          try:
              return self._last_status_in_session[session]
          except KeyError:
              raise errors.Error('The session %r does not seem to be valid as it does not have any last status' % session)
docs: Last status in session.
  
          Helper function to be called by resources properties.