code: def _generate_categorical_mapping(y: Series) -> dict:
      categories = y.astype("category")
      cat_mappings_dependent_var = dict(
          enumerate(categories.cat.categories)
      )
      return cat_mappings_dependent_var
  
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 LabelCleanerMulticlass obj's underlying member method code with example usage: obj._generate_categorical_mapping(y) and returns: cat_mappings_dependent_var