'Reject an incoming message. This method allows a client to reject a
message. It can be used to interrupt and cancel large incoming messages,
or return untreatable messages to their original queue.
:param int delivery-tag: The server-assigned delivery tag
:param bool requeue: If requeue is true, the server will attempt to
requeue the message. If requeue is false or the
requeue attempt fails the messages are discarded or
dead-lettered.'

def basic_reject(self, delivery_tag=None, requeue=True):

    self._impl.basic_reject(delivery_tag=delivery_tag, requeue=requeue)
    self._flush_output()
