def _categorical_helper(self, indata):
        """
        A helper function to do the rigamaroll of getting categorical data.

        :param indata: Any type of input data
        :return: The best guess at the categorical data associated with indata
        """

        try:
            if indata.categorical:
                return indata._categorical_data
            else:
                return indata[:]
        except __HOLE__:
            return np.asarray(indata)
dataset/ETHPy150Open glue-viz/glue/glue/core/roi.py/CategoricalROI._categorical_helper