code: def random_color(dtype=np.uint8):
      
      hue = np.random.random() + .61803
      hue %= 1.0
      color = np.array(colorsys.hsv_to_rgb(hue, .99, .99))
      if np.dtype(dtype).kind in 'iu':
          max_value = (2**(np.dtype(dtype).itemsize * 8)) - 1
          color *= max_value
      color = np.append(color, max_value).astype(dtype)
      return color
docs: Return a random RGB color using datatype specified.
  
      Parameters
      ----------
      dtype: numpy dtype of result
  
      Returns
      ----------
      color: (4,) dtype, random color that looks OK