<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compute_colors_for_labels(self, labels):
 """ Simple function that adds fixed colors depending on the class """

        colors = labels[:, None] * self.palette
        colors = (colors % 255).numpy().astype("uint8")
        return colors