code: def warn_duplicate_edges(feat):
      """Alert user that a feature has too many duplicate values for bins.
  
      :param feat: The feature name.
      :type feat: str
      """
      warnings.warn(
          (
              "Removing duplicate bin edges for "
              "quantile binning of feature {}"
              ". There are too many "
              "duplicate values for the specified "
              "number of bins."
          ).format(feat),
          UserWarning,
      )
  
imports: import logging
  import math
  import warnings
  from abc import ABC, abstractmethod
  import numpy
  import pandas
  from sklearn.metrics import multilabel_confusion_matrix
  from erroranalysis._internal.cohort_filter import filter_from_cohort
  from erroranalysis._internal.constants import DIFF, PRED_Y, ROW_INDEX, TRUE_Y, MatrixParams, MetricKeys, Metrics, ModelTask, metric_to_display_name
  from erroranalysis._internal.metrics import get_ordered_classes, is_multi_agg_metric, metric_to_func
  from raiutils.exceptions import UserConfigValidationException
label_desc: Use image node_id 5 for calling a global function with example usage: warn_duplicate_edges(feat) without return types