def _categories(self, definition) :
        try :
            categories = definition["categories"]
        except __HOLE__ :
            raise ValueError('No "categories" defined')
        
        return categories
dataset/ETHPy150Open datamade/dedupe/dedupe/variables/categorical_type.py/CategoricalType._categories