def METHOD_NAME(self, target: Image) -> np.array:
    """
    Convert a greyscale target PIL image to an RGB numpy array according to the official Mapillary color map.
    """
    target_array = np.array(target)
    rgb_array = np.zeros((target_array.shape[0], target_array.shape[1], 3), dtype=np.uint8)
    for label_id, color in enumerate(self.label_colors):
        # set all pixels with the current label to the color of the current label
        rgb_array[target_array == label_id] = color
    return rgb_array