code: def ack(self):
          
          if not self._method:
              raise AMQPMessageError(
                  'Message.ack only available on incoming messages'
              )
          self._channel.basic.ack(delivery_tag=self.delivery_tag)
docs: Acknowledge Message.
  
          :raises AMQPInvalidArgument: Invalid Parameters
          :raises AMQPChannelError: Raises if the channel encountered an error.
          :raises AMQPConnectionError: Raises if the connection
                                       encountered an error.
  
          :return: