def contains(self, x, y):
        """
        Test whether a set categorical elements fall within
        the region of interest

        :param x: Any array-like object of categories
                 (includes CategoricalComponenets)
        :param y: Unused but required for compatibility

        *Returns*

           A list of True/False values, for whether each x value falls
           within the ROI

        """

        check = self._categorical_helper(x)
        index = np.minimum(np.searchsorted(self.categories, check),
                           1 - len(self.categories))
        return self.categories[index] == check
dataset/ETHPy150Open glue-viz/glue/glue/core/roi.py/CategoricalROI.contains/swapped operands of `-`