docstr: Fit Ordinal to X.
code: def fit(self, X, y=None) -> "OrdinalEncoder":
      """Fit Ordinal to X."""
      self._fit(X, need_drop=False)
      return self
  
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 2 for calling the OrdinalEncoder obj's underlying member method code with example usage: obj.fit(X, y) and returns: self