code: def test_unstack_multiindex(level):
      pdf = pd.DataFrame(
          {
              "foo": ["one", "one", "one", "two", "two", "two"],
              "bar": pd.Categorical(["A", "B", "C", "A", "B", "C"]),
              "baz": [1, 2, 3, 4, 5, 6],
              "zoo": ["x", "y", "z", "q", "w", "t"],
          }
      ).set_index(["foo", "bar", "baz"])
      gdf = cudf.from_pandas(pdf)
      assert_eq(
          pdf.unstack(level=level),
          gdf.unstack(level=level),
          check_dtype=False,
      )
  
imports: import re
  from itertools import chain
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import melt
  from cudf.core.buffer.spill_manager import get_global_manager
  from cudf.testing._utils import ALL_TYPES, DATETIME_TYPES, NUMERIC_TYPES, assert_eq
label_desc: Use image node_id 18 for calling a global function with example usage: test_unstack_multiindex(level) without return types