code: def transform_proba(
      self, y: Union[DataFrame, Series, np.ndarray], as_pandas=False
  ):
      if not as_pandas and isinstance(y, (Series, DataFrame)):
          y = y.to_numpy()
      elif isinstance(y, DataFrame):
          y = copy.deepcopy(y)
          y.columns = copy.deepcopy(
              self.ordered_class_labels_transformed
          )
      return 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 5 for calling the LabelCleanerBinary obj's underlying member method code with example usage: obj.transform_proba(y, as_pandas) and returns: y