def paint_in_cc(pred, aseg_cc):
    """
    Function to paint corpus callosum segmentation into prediction. Note, that this function
    modifies the original array and does not create a copy.

    :param np.ndarray pred: deep-learning prediction
    :param np.ndarray aseg_cc: aseg segmentation with CC
    :return np.ndarray: prediction with added CC
    """
    cc_mask = (aseg_cc >= 251) & (aseg_cc <= 255)
    pred[cc_mask] = aseg_cc[cc_mask]
    return pred