code: def test_pivot_simple(index, column, data):
      pdf = pd.DataFrame(
          {"index": index, "column": column, "data": data}
      )
      gdf = cudf.from_pandas(pdf)
  
      # In pandas 2.0 this will be a failure because pandas will require all of
      # these as keyword arguments. Matching that check in cudf is a bit
      # cumbersome and not worth the effort to match the warning, so this code
      # just catches pandas's warning (rather than updating the signature) so
      # that when it starts failing we know to update our impl of pivot.
      with pytest.warns(FutureWarning):
          expect = pdf.pivot("index", "column")
      got = gdf.pivot("index", "column")
  
      check_index_and_columns = expect.shape != (0, 0)
      assert_eq(
          expect,
          got,
          check_dtype=False,
          check_index_type=check_index_and_columns,
          check_column_type=check_index_and_columns,
      )
  
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 15 for calling a global function with example usage: test_pivot_simple(index, column, data) without return types