How to show the segmentation in segment editor which is loaded from a nii.gz file generated by other program?

I tried to save a segmentation as nii.gz file with slicer.util.saveNode(labelmapVolumeNode, nii_path). This nii.gz file can be shown normally with dicom images when it was loaded as segmentation. But the nii.gz file I saved with the code segment below can not work.

nii = nib.Nifti1Image(segmentation_array, np.eye(4))
nib.save(nii, path+'/t_'+batch_dir+'.nii.gz')

Anything wrong in my code? Any help would be much appreciated.
t_1_2 in the node list is generated with nib.save. it cannot be shown.

1 in the node list is generated with slicer.util.saveNode. it can be shown.