code: def test_ordinal_encoder_array(client: Client) -> None:
      X = DataFrame({"A": [4, 1, 1], "B": [1, 3, 2]})
      X = dask_cudf.from_cudf(X, npartitions=2).values
  
      enc = OrdinalEncoder()
      enc.fit(X)
      Xt = enc.transform(X)
  
      X_1 = DataFrame({"A": [1, 1], "B": [1, 2]})
      X_1 = dask_cudf.from_cudf(X_1, npartitions=2).values
  
      enc = OrdinalEncoder(client=client)
      enc.fit(X)
      Xt_1 = enc.transform(X_1)
  
      Xt_r = Xt.compute()
      Xt_1_r = Xt_1.compute()
      assert Xt_1_r[0, 0] == Xt_r[1, 0]
      assert Xt_1_r[1, 0] == Xt_r[1, 0]
      assert Xt_1_r[0, 1] == Xt_r[0, 1]
      assert Xt_1_r[1, 1] == Xt_r[2, 1]
  
      inv_Xt = enc.inverse_transform(Xt)
      inv_Xt_1 = enc.inverse_transform(Xt_1)
  
      cp.testing.assert_allclose(X.compute(), inv_Xt.compute())
      cp.testing.assert_allclose(X_1.compute(), inv_Xt_1.compute())
  
      assert enc.n_features_in_ == 2
  
file_path: cuml/python/cuml/tests/dask/test_dask_ordinal_encoder.py
imports: import cupy
  import dask_cudf
  import numpy
  import pandas
  import pytest
  from cudf import DataFrame
  from cuml.dask.preprocessing import OrdinalEncoder
  from distributed import Client
label_desc: Use image node_id 2 for calling a global function with example usage: test_ordinal_encoder_array(client) without return types