'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 integer delivery-tag: int/long 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.
:raises: TypeError'

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

    if (not self.is_open):
        raise exceptions.ChannelClosed()
    if (not is_integer(delivery_tag)):
        raise TypeError('delivery_tag    must    be    an    integer')
    return self._send_method(spec.Basic.Reject(delivery_tag, requeue))
