code: def create_set_cmap(values, cmap_name, alpha=255):
      """
      return a dict of colors corresponding to the unique values
  
      :param values: values to be mapped
      :param cmap_name: colormap name
      :param alpha: color alpha
      :return: dict of colors corresponding to the unique values
      """
      unique_values = list(set(values))
      shuffle(unique_values)
      from pylab import get_cmap
  
      cmap = get_cmap(cmap_name)
      d = {}
      for i in range(len(unique_values)):
          d[unique_values[i]] = _convert_color_format(
              cmap(1.0 * i / len(unique_values)), alpha
          )
      return d
  
file_path: geoplotlib/geoplotlib/colors.py
imports: from random import shuffle
  import math
label_desc: Use image node_id 2 for calling a global function with example usage: create_set_cmap(values, cmap_name, alpha) and returns: d