<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def uint32_to_uint8(cls, img):
 """ Cast uint32 RGB image to 4 uint8 channels. """

        return np.flipud(img.view(dtype=np.uint8).reshape(img.shape + (4,)))