def ensure_connected(self, nid, t):
        # open fresh channel
        if self.channels_in not in nid and nid not in self.channels_out and nid not in self.cl_relayees:
            self.last_seen[nid] = t
            self.channels_out.add(nid)
            self.queues[nid] = []
            yield Connect, nid2addr(nid)
            self.last_sent[nid] = t
            yield Ping, OUT, nid, self._next_version()
            if self.is_relay:
                yield RelaySigNew, OUT, nid
dataset/ETHPy150Open eallik/spinoff/spinoff/remoting/hublogic.py/HubLogic.ensure_connected/swapped operands of `not in`