code: def test_get_dummies(data, index):
      gdf = cudf.DataFrame({"x": data}, index=index)
      pdf = pd.DataFrame({"x": data}, index=index)
  
      encoded_expected = pd.get_dummies(pdf, prefix="test")
      with pytest.warns(FutureWarning):
          encoded_actual = cudf.get_dummies(gdf, prefix="test")
  
      assert_eq(
          encoded_expected,
          encoded_actual,
          check_dtype=len(data) != 0,
      )
      encoded_actual = cudf.get_dummies(
          gdf, prefix="test", dtype=np.uint8
      )
  
      assert_eq(
          encoded_expected,
          encoded_actual,
          check_dtype=len(data) != 0,
      )
  
file_path: cudf/python/cudf/cudf/tests/test_onehot.py
imports: from string import ascii_lowercase
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_dummies(data, index) without return types