def __contains__(self, other):
        if type(self) == type(other):
            return self == other
        raise NotImplementedError()
Subclasses should implement this method for anything more complex than equality.
dataset/ETHPy150Open sympy/sympy/sympy/geometry/entity.py/GeometryEntity.__contains__