def restart_nodes(self, browser=None):
        containers = self.get_nodes()
        nodes_to_stop = []
        for container in containers:
            if browser is not None and container['Image'] not in browser:
                continue
            nodes_to_stop.append(container)

        if len(nodes_to_stop) == 0:
            return False

        for container in nodes_to_stop:
            self.adapter.restart(container)

        return True
dataset/ETHPy150Open brady-vitrano/dsgrid/dsgrid/hub.py/GridHub.restart_nodes/swapped operands of `not in`