code: def transform(self, y: Union[Series, np.ndarray, list]) -> Series:
      y = self._convert_to_valid_series(y)
      y = self._transform(y)
      return self.to_transformed_dtype(y)
  
imports: import copy
  import logging
  from typing import Union
  import numpy
  from pandas import DataFrame, Series
  from autogluon.core.constants import BINARY, MULTICLASS, QUANTILE, REGRESSION, SOFTCLASS
  from autogluon.core.utils import get_pred_from_proba, get_pred_from_proba_df
label_desc: Use image node_id 6 for calling the LabelCleaner obj's underlying member method code with example usage: obj.transform(y) and returns: self