def reconnect(self):
        # This is the old connection IOLoop instance, stop its ioloop
        self._connection.ioloop.stop()

        # Create a new connection
        self._connection = self.connect()

        # There is now a new connection, needs a new ioloop to run
        self._connection.ioloop.start()

    ##########################
    # Consume channel handling
    ##########################
Iterate over the nodes. Use the expression 'for n in G'.
dataset/ETHPy150Open comodit/synapse-agent/synapse/amqp.py/Amqp.reconnect--crossover with--dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/classes/graph.py/Graph.__iter__