code: def id2rgb(id_map):
      id_map_copy = id_map.copy()
      rgb_shape = tuple(list(id_map.shape) + [3])
      rgb_map = np.zeros(rgb_shape, dtype=np.uint8)
      for i in range(3):
          rgb_map[..., i] = id_map_copy % 256
          id_map_copy //= 256
      return rgb_map
  
label_desc: Use image node_id 2 for calling a global function with example usage: id2rgb(id_map) and returns: rgb_map