code: def test_nifti_to_dicom_seg(self):
      image = os.path.join(
          self.dicom_dataset,
          "1.2.826.0.1.3680043.8.274.1.1.8323329.686549.1629744177.996087",
      )
      label = os.path.join(
          self.dicom_dataset,
          "labels",
          "final",
          "1.2.826.0.1.3680043.8.274.1.1.8323329.686549.1629744177.996087.nii.gz",
      )
      result = nifti_to_dicom_seg(image, label, None, use_itk=False)
  
      assert os.path.exists(result)
      assert result.endswith(".dcm")
      os.unlink(result)
  
file_path: MONAILabel/tests/unit/datastore/test_convert.py
imports: import os
  import tempfile
  import unittest
  import numpy
  from monai.transforms import LoadImage
  from monailabel.datastore.utils.convert import binary_to_image, dicom_to_nifti, nifti_to_dicom_seg
label_desc: Use image node_id 3 for calling the TestConvert obj's underlying member method code with example usage: obj.test_nifti_to_dicom_seg() without return types