code: def test_multiindex():
      pdf = pd.DataFrame(np.random.rand(7, 5))
      pdf.index = pd.MultiIndex(
          [
              ["a", "b", "c"],
              ["house", "store", "forest"],
              ["clouds", "clear", "storm"],
              ["fire", "smoke", "clear"],
          ],
          [
              [0, 0, 0, 0, 1, 1, 2],
              [1, 1, 1, 1, 0, 0, 2],
              [0, 0, 2, 2, 2, 0, 1],
              [0, 0, 0, 1, 2, 0, 1],
          ],
      )
      pdf.index.names = ["alpha", "location", "weather", "sign"]
      gdf = cudf.from_pandas(pdf)
  
      assert pdf.index.is_unique == gdf.index.is_unique
      with pytest.warns(FutureWarning):
          expect = pdf.index.is_monotonic
      with pytest.warns(FutureWarning):
          got = gdf.index.is_monotonic
      assert got == expect
      assert (
          pdf.index.is_monotonic_increasing
          == gdf.index.is_monotonic_increasing
      )
      assert (
          pdf.index.is_monotonic_decreasing
          == gdf.index.is_monotonic_decreasing
      )
  
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf import Index, MultiIndex, Series
  from cudf.core.index import CategoricalIndex, DatetimeIndex, GenericIndex, RangeIndex
  from cudf.testing._utils import assert_eq, expect_warning_if
label_desc: Use image node_id 7 for calling a global function with example usage: test_multiindex() without return types