class_docstr: Generate colormap for visualizing segmentation masks or bounding boxes.
  
  This is based on the MATLab code in the PASCAL VOC repository:
      http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit
code: def get_color_map(self) -> np.ndarray:
      dtype = "float32" if self.normalized else "uint8"
      color_map = np.zeros((self.n, 3), dtype=dtype)
      for i in range(self.n):
          r = g = b = 0
          c = i
          for j in range(8):
              r = r | (self.get_bit_at_idx(c, 0) << 7 - j)
              g = g | (self.get_bit_at_idx(c, 1) << 7 - j)
              b = b | (self.get_bit_at_idx(c, 2) << 7 - j)
              c = c >> 3
  
          color_map[i] = np.array([r, g, b])
      color_map = color_map / 255 if self.normalized else color_map
      return color_map
  
file_path: ml-cvnets/utils/color_map.py
imports: from typing import List, Optional
  import numpy
label_desc: Use image node_id 3 for calling the Colormap obj's underlying member method code with example usage: obj.get_color_map() and returns: color_map