code: def assert_categorical_consistent(self, expected, real):
      if not isinstance(real, pd.Categorical):
          raise AssertionError(
              f"Type of real value ({type(real)}) not Categorical"
          )
      self.assert_dtype_consistent(expected.dtype, real.dtype)
      self.assert_shape_consistent(expected.shape, real.shape)
      self.assert_index_value_consistent(
          expected.categories_value, real.categories
      )
  
imports: import fnmatch
  import functools
  import inspect
  import itertools
  import logging
  import os
  import sys
  import time
  import types
  from typing import Dict
  import numpy
  import pandas
  import pytest
  from ..core.operand import OperandStage
  from ..utils import lazy_import
label_desc: Use image node_id 10 for calling the ObjectCheckMixin obj's underlying member method code with example usage: obj.assert_categorical_consistent(expected, real) without return types