code: def test_categorical_compare_unordered(data):
      cat = data.copy()
      pdsr = pd.Series(cat)
      sr = Series(cat)
      dsr = dgd.from_cudf(sr, npartitions=2)
  
      # Test equality
      out = dsr == dsr
      assert out.dtype == np.bool_
      assert np.all(out.compute())
      assert np.all(pdsr == pdsr)
  
      # Test inequality
      out = dsr != dsr
      assert not np.any(out.compute())
      assert not np.any(pdsr != pdsr)
  
      assert not dsr.cat.ordered
      assert not pdsr.cat.ordered
  
      with pytest.raises(
          (TypeError, ValueError),
          match="Unordered Categoricals can only compare equality or not",
      ):
          pdsr < pdsr
  
      with pytest.raises(
          (TypeError, ValueError),
          match=(
              "The only binary operations supported by unordered categorical "
              "columns are equality and inequality."
          ),
      ):
          dsr < dsr
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_series_equal
  from dask import dataframe
  from cudf import DataFrame, Series, date_range
  from cudf.testing._utils import assert_eq, does_not_raise
  import dask_cudf
label_desc: Use image node_id 13 for calling a global function with example usage: test_categorical_compare_unordered(data) without return types