code: def is_dtype_equal(self, other):
          
  
          try:
              return hash(self.dtype) == hash(other.dtype)
          except (AttributeError, TypeError):
              return False
docs: Returns True if categoricals are the same dtype
            same categories, and same ordered
  
          Parameters
          ----------
          other : Categorical
  
          Returns
          -------
          bool