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_box_color_codes(self) -> List:
      box_codes = []
  
      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
          box_codes.append((int(r), int(g), int(b)))
      return box_codes
  
file_path: ml-cvnets/utils/color_map.py
imports: from typing import List, Optional
  import numpy
label_desc: Use image node_id 4 for calling the Colormap obj's underlying member method code with example usage: obj.get_box_color_codes() and returns: box_codes