code: def random_color(rgb=False, maximum=255):
      """
      Parameters
      ----------
      rgb (bool): whether to return RGB colors or BGR colors.
      maximum (int): either 255 or 1
  
      Returns
      -------
      ndarray: a vector of 3 numbers
      """
      idx = np.random.randint(0, len(_COLORS))
      ret = _COLORS[idx] * maximum
      if not rgb:
          ret = ret[::-1]
      return ret
  
imports: import random
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: random_color(rgb, maximum) and returns: ret