def setup_queue(self, queue_node):
        """Setup the queue on RabbitMQ by invoking the Queue.Declare RPC
        command. When it is complete, the on_queue_declareok method will
        be invoked by pika.

        :param str|unicode queue_name: The name of the queue to declare.

        """
        self.lg("Declaring Queue(" + str(queue_node["Name"]) + ") Attributes(" + str(queue_node["Attributes"]) + ")", 6)

        durable         = bool(queue_node["Durable"])
        exclusive       = bool(queue_node["Exclusive"])
        auto_delete     = bool(queue_node["AutoDelete"])

        self.m_channel.queue_declare(self.on_queue_declareok, queue=str(queue_node["Name"]), durable=durable, exclusive=exclusive, auto_delete=auto_delete)
            
    # end of setup_queue
dataset/ETHPy150Open GetLevvel/message-simulator/src/rabbit_message_publisher.py/RabbitMessagePublisher.setup_queue/original