<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_colors(img):
 """ Returns a list of all the image's colors. """

    w, h = img.size
    return [color[:3] for count, color in img.convert('RGB').getcolors(w * h)]