code: def adjust_colors(colors, n_classes=None, cmp="RdYlBu"):
      if colors is None:
          if (
              n_classes
              and n_classes > len(color_blind_friendly_colors) - 1
          ):
              # in case the number of classes is bigger than the color_blind_friendly_colors can handle, we will add more
              # color class values
              COLORS["classes"] = get_hex_colors(n_classes, cmp)
          return COLORS
  
      return dict(COLORS, **colors)
  
label_desc: Use image node_id 2 for calling a global function with example usage: adjust_colors(colors, n_classes, cmp) and returns: dict, COLORS