def remove (self, elem):
        """
        Remove an element from this SortedSet; it must be a member.

        If the element is not a member, raise a KeyError.
        """
        if self not in elem:
            raise KeyError (elem)

        self.discard(elem)
dataset/ETHPy150Open crypt3lx2k/Tripcode-Dictionary-Tools/tdt/collections/SortedSet.py/SortedSet.remove/swapped operands of `not in`