async def send(self, message):
if not isinstance(message, Message):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if not self.session_id and not message.properties.group_id:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return await super(SessionSender, self).send(message)<EOL>
Send a message and blocks until acknowledgement is received or the operation fails.

        If neither the Sender nor the message has a session ID, a `ValueError` will be raised.

        :param message: The message to be sent.
        :type message: ~azure.servicebus.aio.async_message.Message
        :raises: ~azure.servicebus.common.errors.MessageSendFailed if the message fails to
         send.

        Example:
            .. literalinclude:: ../examples/async_examples/test_examples_async.py
                :start-after: [START open_close_session_sender_context]
                :end-before: [END open_close_session_sender_context]
                :language: python
                :dedent: 4
                :caption: Open a sessionful Sender and send messages.