code: def test_unstack_index(data, index, col_idx):
      pdf = pd.DataFrame(data)
      gdf = cudf.from_pandas(pdf)
  
      pdf.index = index
      pdf.columns = col_idx
  
      gdf.index = cudf.from_pandas(index)
      gdf.columns = cudf.from_pandas(col_idx)
  
      assert_eq(pdf.unstack(), gdf.unstack())
  
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 19 for calling a global function with example usage: test_unstack_index(data, index, col_idx) without return types