code: def draw_instance_map(x, palette=None):
      num_colors = x.max() + 1
      if palette is None:
          palette = get_palette(num_colors)
  
      return palette[x].astype(np.uint8)
  
file_path: PaddleSeg/EISeg/eiseg/util/vis.py
imports: from functools import lru_cache
  import cv2
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: draw_instance_map(x, palette) and returns: palette