def cancel_scheduled_messages(self, *sequence_numbers):
if not self.running:<EOL><INDENT>self.open()<EOL><DEDENT>numbers = [types.AMQPLong(s) for s in sequence_numbers]<EOL>request_body = {'<STR_LIT>': types.AMQPArray(numbers)}<EOL>return self._mgmt_request_response(<EOL>REQUEST_RESPONSE_CANCEL_SCHEDULED_MESSAGE_OPERATION,<EOL>request_body,<EOL>mgmt_handlers.default)<EOL>
Cancel one or more messages that have previsouly been scheduled and are still pending.

        :param sequence_numbers: The seqeuence numbers of the scheduled messages.
        :type sequence_numbers: int

        Example:
            .. literalinclude:: ../examples/test_examples.py
                :start-after: [START cancel_scheduled_messages]
                :end-before: [END cancel_scheduled_messages]
                :language: python
                :dedent: 4
                :caption: Cancelling messages scheduled to be sent in future