code: def test_categorical_compare_ordered(data):
      cat1 = data[0]
      cat2 = data[1]
      pdsr1 = pd.Series(cat1)
      pdsr2 = pd.Series(cat2)
      sr1 = Series(cat1)
      sr2 = Series(cat2)
      dsr1 = dgd.from_cudf(sr1, npartitions=2)
      dsr2 = dgd.from_cudf(sr2, npartitions=2)
  
      # Test equality
      out = dsr1 == dsr1
      assert out.dtype == np.bool_
      assert np.all(out.compute().values_host)
      assert np.all(pdsr1 == pdsr1)
  
      # Test inequality
      out = dsr1 != dsr1
      assert not np.any(out.compute().values_host)
      assert not np.any(pdsr1 != pdsr1)
  
      assert dsr1.cat.ordered
      assert pdsr1.cat.ordered
  
      # Test ordered operators
      np.testing.assert_array_equal(
          pdsr1 < pdsr2, (dsr1 < dsr2).compute().values_host
      )
      np.testing.assert_array_equal(
          pdsr1 > pdsr2, (dsr1 > dsr2).compute().values_host
      )
  
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 14 for calling a global function with example usage: test_categorical_compare_ordered(data) without return types