docstr: Transform X using ordinal encoding.
code: def transform(self, X):
      """Transform X using ordinal encoding."""
      self._check_n_features(X, reset=False)
  
      result = {}
      for feature in self._features:
          Xi = _slice_feat(X, feature)
          col_idx = self._encoders[feature].transform(Xi)
          result[feature] = col_idx
  
      r = DataFrame(result)
      return _get_output(
          self.output_type, self.input_type, r, self.dtype
      )
  
imports: import warnings
  from typing import List, Optional, TypeVar
  import cuml.internals.logger
  from cudf import DataFrame, Series
  from cuml import Base
  from cuml.common.doc_utils import generate_docstring
  from cuml.common.exceptions import NotFittedError
  from cuml.internals.safe_imports import cpu_only_import, gpu_only_import, gpu_only_import_from
  from cuml.preprocessing import LabelEncoder
label_desc: Use image node_id 3 for calling the OrdinalEncoder obj's underlying member method code with example usage: obj.transform(X) and returns: _get_output