code: def test_multiindex_equal(rdata):
      pidx1 = pd.MultiIndex.from_arrays(
          [[0, 1, 2, 3], ["G", "O", "N", "E"]], names=("n", "id")
      )
      pidx2 = pd.MultiIndex.from_arrays(rdata, names=("n", "id"))
  
      idx1 = cudf.from_pandas(pidx1)
      idx2 = cudf.from_pandas(pidx2)
  
      kind = None
      try:
          pd.testing.assert_index_equal(pidx1, pidx2)
      except BaseException as e:
          kind = type(e)
  
      if kind is not None:
          with pytest.raises(kind):
              assert_index_equal(idx1, idx2)
      else:
          assert_index_equal(idx1, idx2)
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core.column.column import as_column, full
  from cudf.testing import assert_frame_equal, assert_index_equal, assert_series_equal
  from cudf.testing._utils import NUMERIC_TYPES, OTHER_TYPES, assert_column_memory_eq, assert_column_memory_ne, assert_eq
  from cudf.testing.testing import assert_column_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_multiindex_equal(rdata) without return types