def __contains__(self,
            element):
        return element in self.elements
As per Container.
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/suitability/toolboxes/scripts/MultidimensionSupplementalTools/MultidimensionSupplementalTools/Scripts/mds/ordered_set.py/OrderedSet.__contains__