def prefer_isolation(self, index):
        def new_iterator():
            for n in self:
                # When this is a SimpleNode, yield only this isolation if it
                # exists.
                if not n._node_is_isolated:
                    try:
                        yield n[index]
                    except KeyError:
                        # TODO: maybe: yield n here. Not 100% sure, whether this is the best.
                        pass
                # Otherwise, just yield the node.
                else:
                    yield n
        return NodeIterator(new_iterator)
Run the application and conserve the traceback frames.
dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/inspection/inspector.py/NodeIterator.prefer_isolation--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-flask-skeleton/lib/werkzeug/debug/__init__.py/DebuggedApplication.debug_application