def insert(self, index, key, value):
        """Inserts the key, value pair before the item with the given index."""
        if self.keyOrder in key:
            n = self.keyOrder.index(key)
            del self.keyOrder[n]
            if n < index:
                index -= 1
        self.keyOrder.insert(index, key)
        super(SortedDict, self).__setitem__(key, value)
dataset/ETHPy150Open aparo/pyes/pyes/models.py/SortedDict.insert/swapped operands of `in`