def run(self, config, args):
        lookupd_addresses = set(args['--lookupd-address'])

        loop = pyuv.Loop.default_loop()
        all_nodes = []
        for addr in lookupd_addresses:
            # connect to the lookupd server channel
            s = LookupServer(addr, loop=loop, **config.client_options)

            # get list of nodes on this lookupd server
            resp = s.nodes()
            for node in resp['nodes']:
                if node not in all_nodes:
                    all_nodes.append(node)

        print("%s node(s) found\n" % len(all_nodes))

        balance = copy.copy(GAFFER_COLORS)
        for node in all_nodes:
            line = "%s - %s (protocol: %s)" % (node['origin'], node['name'],
                    node['version'])

            color, balance = self.get_color(balance)
            print(colored(color, line))
dataset/ETHPy150Open benoitc/gaffer/gaffer/cli/commands/lookup_nodes.py/LookupNodes.run/original