code: def categories_equals(left, right):
      assert (left.ordered and right.ordered) or (
          not left.ordered and not right.ordered
      )
      assert_extension_array_equal(left, right)
  
file_path: ray/python/ray/tests/modin/modin_test_utils.py
imports: import pandas
  import modin.pandas
  from modin.utils import to_pandas
  from pandas.testing import assert_series_equal, assert_frame_equal, assert_extension_array_equal, assert_index_equal
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: categories_equals(left, right) without return types