code: def test_basic(self, daskify, values):
      de = dpp.OrdinalEncoder()
      df = dummy[["A", "D"]]
      if daskify:
          df = dd.from_pandas(df, 2)
      de = de.fit(df)
      trn = de.transform(df)
  
      expected = pd.DataFrame(
          {
              "A": np.array([0, 1, 2, 0], dtype="int8"),
              "D": np.array([1, 2, 3, 4], dtype="int64"),
          },
          columns=["A", "D"],
      )
  
      assert_eq_df(trn, expected)
  
      if values:
          trn = trn.values
  
      result = de.inverse_transform(trn)
  
      if daskify:
          df = df.compute()
          result = result.compute()
  
      tm.assert_frame_equal(result, df)
  
imports: from copy import copy
  import dask
  import dask.array
  import dask.dataframe
  import numpy
  import pandas
  import pandas.testing
  import pytest
  import sklearn.preprocessing
  from dask import compute
  from dask.array.utils import assert_eq
  from dask.dataframe.utils import assert_eq
  from pandas.api.types import is_categorical_dtype, is_object_dtype
  from sklearn.exceptions import NotFittedError
  import dask_ml.preprocessing
  from dask_ml.datasets import make_classification
  from dask_ml.utils import assert_estimator_equal
label_desc: Use image node_id 1 for calling the TestOrdinalEncoder obj's underlying member method code with example usage: obj.test_basic(daskify, values) without return types