code: def __init__(self, color_path, shuffle=False):
      self.colors = []
      self.index = 0
      self.usedColors = []
      with open(color_path, "r") as f:
          colors = f.readlines()
      if shuffle:
          random.shuffle(colors)
      self.colors = [
          [int(x) for x in c.strip().split(",")] for c in colors
      ]
  
file_path: PaddleSeg/EISeg/eiseg/util/colormap.py
imports: import os.path
  import random
  from eiseg import pjpath
label_desc: Use image node_id 1 to create a new ColorMap object from inherited base classes: object with example: obj = ColorMap(color_path, shuffle)