def draw_sprite_color(label_map, color_dict, background_color):
    """
    A function return label_map after draw color for each sprite

    @param:
        - label_map (a map after draw border for each sprite)
        - color_dict (a collection of color for each label)
        - background_color (the color to use as the background
                            of the image to create)

    @return:
        - label_map after draw color for each sprite
    """
    for row in range(len(label_map)):
        for col in range(len(label_map[row])):
            if label_map[row][col].label == 0:
                label_map[row][col] = background_color
            else:
                label_map[row][col] = color_dict[label_map[row][col].label]
    return label_map
