code: def _colors(labels, max_label=None, seed=None):
      mappable = matplotlib.cm.ScalarMappable(
          cmap=matplotlib.cm.get_cmap(get_default_colormap())
      )
  
      colors = mappable.to_rgba(
          numpy.arange(labels.max() if max_label is None else max_label)
      )[:, :3]
  
      if seed is not None:
          # Resetting the random seed helps keep object label colors consistent in displays
          # where consistency is important, like RelateObjects.
          numpy.random.seed(seed)
  
      numpy.random.shuffle(colors)
  
      return colors
  
imports: import matplotlib.cm
  import numpy
  import skimage.color
  from ...preferences import get_default_colormap
label_desc: Use image node_id 4 for calling a global function with example usage: _colors(labels, max_label, seed) and returns: colors