having difficulty saving a segmentation as nii.gz format

having difficulty saving a segmentation as nii.gz format