async def METHOD_NAME(self, *, timeout: Optional[float] = None, **kwargs: Any) -> bytes:
    """Get the session state.
    Returns None if no state has been set.
    :keyword Optional[float] timeout: The total operation timeout in seconds including all the retries.
     The value must be greater than 0 if specified. The default value is None, meaning no timeout.
    :return: The session state.
    :rtype: bytes
    .. admonition:: Example:
        .. literalinclude:: ../samples/async_samples/sample_code_servicebus_async.py
            :start-after: [START get_session_state_async]
            :end-before: [END get_session_state_async]
            :language: python
            :dedent: 4
            :caption: Get the session state
    """
    if kwargs:
        warnings.warn(f"Unsupported keyword args: {kwargs}")
    self._receiver._check_live()  # pylint: disable=protected-access
    if timeout is not None and timeout <= 0:
        raise ValueError("The timeout must be greater than 0.")
    response = await self._receiver._mgmt_request_response_with_retry(  # pylint: disable=protected-access
        REQUEST_RESPONSE_GET_SESSION_STATE_OPERATION,
        {MGMT_REQUEST_SESSION_ID: self._session_id},
        mgmt_handlers.default,
        timeout=timeout,
    )
    session_state = response.get(MGMT_RESPONSE_SESSION_STATE)
    return session_state