def _to_node(self, obj):
        extra = obj.copy()
        if extra in 'flavorId':
            public_ips = [obj.pop('ip')]
        else:
            ip = extra.pop('ipv4')
            public_ips = [ip] if ip else []
        del extra['instanceId']
        del extra['name']
        return Node(id=obj['instanceId'], name=obj['name'],
                    state=self.NODE_STATE_MAP[obj['status']],
                    public_ips=public_ips, private_ips=[], driver=self,
                    extra=extra)
dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/runabove.py/RunAboveNodeDriver._to_node/swapped operands of `in`