def get_session_state(self):
self._can_run()<EOL>response = self._mgmt_request_response(<EOL>REQUEST_RESPONSE_GET_SESSION_STATE_OPERATION,<EOL>{'<STR_LIT>': self.session_id},<EOL>mgmt_handlers.default)<EOL>session_state = response.get(b'<STR_LIT>')<EOL>if isinstance(session_state, six.binary_type):<EOL><INDENT>session_state = session_state.decode('<STR_LIT>')<EOL><DEDENT>return session_state<EOL>
Get the session state.

        Returns None if no state has been set.

        :rtype: str

        Example:
            .. literalinclude:: ../examples/test_examples.py
                :start-after: [START get_session_state]
                :end-before: [END get_session_state]
                :language: python
                :dedent: 4
                :caption: Get the session state of the receiver