<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _normalize(mat: np.ndarray):
 """rescales a numpy array, so that min is 0 and max is 255"""

    return ((mat - mat.min()) * (255 / mat.max())).astype(np.uint8)