code: def create_quantiles(items: Sequence, lower_bound, upper_bound):
      
  
      interval = (upper_bound - lower_bound) / len(items)
  
      quantiles = ((g, (x - interval, x)) for g, x in
                   zip(items, accumulate(repeat(interval, len(items)))))
  
      return quantiles
docs: Create quantile start and end boundaries.