code: def test_cdt_eq(data, ordered):
      dt = cudf.CategoricalDtype(categories=data, ordered=ordered)
      assert dt == "category"
      assert dt == dt
      assert dt == cudf.CategoricalDtype(
          categories=None, ordered=ordered
      )
      assert dt == cudf.CategoricalDtype(
          categories=data, ordered=ordered
      )
      assert not dt == cudf.CategoricalDtype(
          categories=data, ordered=not ordered
      )
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_150
  from cudf.core.column import ColumnBase
  from cudf.core.dtypes import CategoricalDtype, Decimal32Dtype, Decimal64Dtype, Decimal128Dtype, IntervalDtype, ListDtype, StructDtype
  from cudf.testing._utils import assert_eq
  from cudf.utils.dtypes import np_to_pa_dtype
label_desc: Use image node_id 2 for calling a global function with example usage: test_cdt_eq(data, ordered) without return types