docstr: Fit OrdinalEncoder to X, then transform X. Equivalent to fit(X).transform(X).
code: def fit_transform(self, X, y=None):
      """Fit OrdinalEncoder to X, then transform X. Equivalent to fit(X).transform(X)."""
      X = self._check_input(X)
      return self.fit(X).transform(X)
  
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 4 for calling the OrdinalEncoder obj's underlying member method code with example usage: obj.fit_transform(X, y) and returns: self