code: def get_color_map_list(num_classes):
      """
      Args:
          num_classes (int): number of class
      Returns:
          color_map (list): RGB color list
      """
      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
      color_map = [
          color_map[i : i + 3] for i in range(0, len(color_map), 3)
      ]
      return color_map
  
file_path: PaddleHub/modules/image/keypoint_detection/pp-tinypose/visualize.py
imports: from __future__ import division
  import math
  import os
  import cv2
  import numpy
  from PIL import Image
  from PIL import ImageDraw
  from PIL import ImageFile
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