def onEnterNode(self, node):
        # print node, node.provider

        for variable in node.getClosureVariables():
            assert not variable.isModuleVariable()

            current = node

            while current is not variable.getOwner():
                if current.isParentVariableProvider():
                    if current.getClosureVariables() not in variable:
                        current.addClosureVariable(variable)

                # Detect loops in the provider relationship
                assert current.getParentVariableProvider() is not current

                current = current.getParentVariableProvider()

                # Not found?!
                assert current is not None, variable
dataset/ETHPy150Open kayhayen/Nuitka/nuitka/finalizations/FinalizeClosureTaking.py/FinalizeClosureTaking.onEnterNode/swapped operands of `not in`