code: def test_dataframe_sort_values_kind(nelem, dtype, kind):
      np.random.seed(0)
      df = DataFrame()
      df["a"] = aa = (100 * np.random.random(nelem)).astype(dtype)
      df["b"] = bb = (100 * np.random.random(nelem)).astype(dtype)
      with expect_warning_if(kind != "quicksort", UserWarning):
          sorted_df = df.sort_values(by="a", kind=kind)
      # Check
      sorted_index = np.argsort(aa, kind="mergesort")
      assert_eq(sorted_df.index.values, sorted_index)
      assert_eq(sorted_df["a"].values, aa[sorted_index])
      assert_eq(sorted_df["b"].values, bb[sorted_index])
  
imports: import string
  from itertools import product
  import numpy
  import pandas
  import pytest
  from cudf import DataFrame, Series
  from cudf.core.column import NumericalColumn
  from cudf.testing._utils import DATETIME_TYPES, NUMERIC_TYPES, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 17 for calling a global function with example usage: test_dataframe_sort_values_kind(nelem, dtype, kind) without return types