code: def get_color_map_list(num_classes):
      """Returns the color map for visualizing the segmentation mask,
          which can support arbitrary number of classes.
      Args:
          num_classes: Number of classes
      Returns:
          The color map
      """
      color_map = num_classes * [0, 0, 0]
      for i in range(0, num_classes):
          j = 0
          lab = i
          while lab:
              color_map[i * 3] |= ((lab >> 0) & 1) << (7 - j)
              color_map[i * 3 + 1] |= ((lab >> 1) & 1) << (7 - j)
              color_map[i * 3 + 2] |= ((lab >> 2) & 1) << (7 - j)
              j += 1
              lab >>= 3
  
      return color_map
  
file_path: PaddleSeg/contrib/CityscapesSOTA/tools/convert_cityscapes_autolabeling.py
imports: import os
  import glob
  import argparse
  import numpy
  from PIL import Image
  import cityscapes_labels
label_desc: Use image node_id 2 for calling a global function with example usage: get_color_map_list(num_classes) and returns: color_map