code: def test_onehot_get_categories(client):
      X = DataFrame({"chars": ["c", "b", "d"], "ints": [2, 1, 0]})
      X = dask_cudf.from_cudf(X, npartitions=2)
  
      ref = [np.array(["b", "c", "d"]), np.array([0, 1, 2])]
      enc = OneHotEncoder().fit(X)
      cats = enc.categories_
  
      for i in range(len(ref)):
          np.testing.assert_array_equal(ref[i], cats[i].to_numpy())
  
file_path: cuml/python/cuml/tests/dask/test_dask_one_hot_encoder.py
imports: from cuml.internals.safe_imports import cpu_only_import_from
  from sklearn.preprocessing import OneHotEncoder
  from cuml.testing.utils import stress_param, generate_inputs_from_categories, assert_inverse_equal, from_df_to_numpy
  from cuml.dask.preprocessing import OneHotEncoder
  import dask.array
  from cuml.internals.safe_imports import cpu_only_import
  from cudf import DataFrame, Series
  import pytest
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 11 for calling a global function with example usage: test_onehot_get_categories(client) without return types