code: def test_sort_values(nelem, nparts, by, ascending):
      np.random.seed(0)
      df = cudf.DataFrame()
      df["a"] = np.ascontiguousarray(np.arange(nelem)[::-1])
      df["b"] = np.arange(100, nelem + 100)
      df["c"] = df["b"].astype("str")
      df["d"] = df["a"].astype("category")
      ddf = dd.from_pandas(df, npartitions=nparts)
  
      with dask.config.set(scheduler="single-threaded"):
          got = ddf.sort_values(by=by, ascending=ascending)
      expect = df.sort_values(by=by, ascending=ascending)
      dd.assert_eq(got, expect, check_index=False)
  
file_path: cudf/python/dask_cudf/dask_cudf/tests/test_sort.py
imports: import cupy
  import numpy
  import pytest
  import dask
  from dask import dataframe
  import cudf
  import dask_cudf
label_desc: Use image node_id 1 for calling a global function with example usage: test_sort_values(nelem, nparts, by, ascending) without return types