def setup_exchange(self, exchange_node):
        """Setup the exchange on RabbitMQ by invoking the Exchange.Declare RPC
        command. When it is complete, the on_exchange_declareok method will
        be invoked by pika.

        :param str|unicode exchange_name: The name of the exchange to declare

        """
        self.lg("Declaring Exchange(" + str(exchange_node["Name"]) + ") Type(" + str(exchange_node["Type"] + ") Attributes(" + str(exchange_node["Attributes"]) + ")"), 6)
        
        durable         = bool(exchange_node["Durable"])
        exclusive       = bool(exchange_node["Exclusive"])
        auto_delete     = bool(exchange_node["AutoDelete"])

        self.m_channel.exchange_declare(self.on_exchange_declareok, exchange=str(exchange_node["Name"]), type=str(exchange_node["Type"]).lower().lstrip().strip(), durable=durable, auto_delete=auto_delete)

     # end of setup_exchange
dataset/ETHPy150Open GetLevvel/message-simulator/src/rabbit_message_publisher.py/RabbitMessagePublisher.setup_exchange/original