code: def create_weight_stops(breaks):
      
      num_breaks = len(breaks)
      weight_breaks = scale_between(0, 1, num_breaks)
      stops = []
  
      for i, b in enumerate(breaks):
          stops.append([b, weight_breaks[i]])
      return stops
docs: Convert data breaks into a heatmap-weight ramp