code: def test_binary_to_image(self):
      reference_image = os.path.join(
          self.local_dataset, "labels", "final", "spleen_3.nii.gz"
      )
      label = LoadImage(image_only=True)(reference_image)
      label = label.astype(np.uint8)
      label = label.flatten(order="F")
  
      label_bin = tempfile.NamedTemporaryFile(suffix=".bin").name
      label.tofile(label_bin)
  
      result = binary_to_image(reference_image, label_bin)
      os.unlink(label_bin)
  
      assert os.path.exists(result)
      assert result.endswith(".nii.gz")
      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 2 for calling the TestConvert obj's underlying member method code with example usage: obj.test_binary_to_image() without return types