code: def _get_group_quantiles(
      feature: pd.Series,
      sensitive_attribute: pd.Series,
      quantiles: np.ndarray,
  ) -> dict[str, np.ndarray]:
      """
      Transforms the quantiles to a more digested value.
  
      The original method of pandas creates a dictionary with a two-level
      index, which is harder to query. This transforms the two level index in
      dictionaries within a single dictionary.
  
      Parameters
      ----------
      feature : pd.Series
          The feature to obtain the quantiles.
      sensitive_attribute : pd.Series
          The sensitive attribute.
      quantiles : np.ndarray
          The quantiles to calculate.
      """
      quantile_dict = feature.groupby(sensitive_attribute).quantile(
          quantiles
      )
      transformed_quantile_dict = {}
      for group in quantile_dict.index.get_level_values(0).unique():
          transformed_quantile_dict[group] = quantile_dict[group].values
      return transformed_quantile_dict
  
imports: import numpy
  import pandas
label_desc: Use image node_id 3 for calling a global function with example usage: _get_group_quantiles(feature, sensitive_attribute, quantiles) and returns: transformed_quantile_dict