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