code: def get_palette(num_cls):
      return np.array(
          [
              [0, 0, 0],
              [128, 0, 0],
              [0, 128, 0],
              [0, 0, 128],
              [128, 128, 0],
              [0, 128, 128],
              [128, 0, 128],
          ]
      )
  
file_path: PaddleSeg/EISeg/eiseg/util/vis.py
imports: from functools import lru_cache
  import cv2
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: get_palette(num_cls) and returns: np