def METHOD_NAME(img: np.ndarray):
    img = to_uint8(img, normalized=True)
    _, _, c = get_h_w_c(img)
    if c == 4:
        img = img[:, :, :3]
    elif c == 1:
        img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
    return img