code: def assert_categorical_equal(left, right, *args, **kwargs):
      tm.assert_extension_array_equal(left, right, *args, **kwargs)
      assert isinstance(
          left.dtype, pd.CategoricalDtype
      ), f"{left} is not categorical dtype"
      assert isinstance(
          right.dtype, pd.CategoricalDtype
      ), f"{right} is not categorical dtype"
  
imports: from __future__ import annotations
  import contextlib
  import string
  import warnings
  import numpy
  import pandas
  from packaging.version import Version
  import pandas.testing
label_desc: Use image node_id 1 for calling a global function with example usage: assert_categorical_equal(left, right) without return types