code: def _resolve_categorical(self):
          
          # ---an array categorical is either CA_CAT or MR_CAT---
          if self._is_array_cat:
              return DT.MR_CAT if self._has_selected_category else DT.CA_CAT
  
          # ---what's left is logical or plain-old categorical---
          return DT.LOGICAL if self._has_selected_category else DT.CAT
docs: Return one of the categorical members of DIMENSION_TYPE.
  
          This method distinguishes between CAT, CA_CAT, MR_CAT, and LOGICAL
          dimension types, all of which have the base type 'categorical'. The
          return value is only meaningful if the dimension is known to be one
          of the categorical types (has base-type 'categorical').