code: def test_set_index_quantile(nelem, nparts, by):
      df = cudf.DataFrame()
      df["a"] = np.ascontiguousarray(np.arange(nelem)[::-1])
      df["b"] = np.random.choice(cudf.datasets.names, size=nelem)
      ddf = dd.from_pandas(df, npartitions=nparts)
  
      got = ddf.set_index(by, divisions="quantile")
      expect = df.sort_values(by=by).set_index(by)
      dd.assert_eq(got, expect)
  
imports: import random
  import cupy
  import numpy
  import pandas
  import pytest
  from packaging import version
  import dask
  from dask import dataframe
  from dask.dataframe.core import make_meta, meta_nonempty
  from dask.utils import M
  import cudf
  import dask_cudf
label_desc: Use image node_id 13 for calling a global function with example usage: test_set_index_quantile(nelem, nparts, by) without return types