Networks.dscalar.nii into networks.label.gii

I have a networks.dscalar.nii file in which different functional networks are stored. However, the labels for each network are not available. Is there any way I can transform this file into a .label.gii file if I have the labels as a .txt file?