code: def test_binary_ijv():
      workspace, module, ijv = make_workspace_ijv()
      assert isinstance(
          module,
          cellprofiler.modules.convertobjectstoimage.ConvertObjectsToImage,
      )
      module.image_mode.value = "Binary (black & white)"
      module.run(workspace)
      pixel_data = workspace.image_set.get_image(IMAGE_NAME).pixel_data
      assert len(
          numpy.unique(ijv[:, 0] + ijv[:, 1] * pixel_data.shape[0])
      ) == numpy.sum(pixel_data)
      assert numpy.all(pixel_data[ijv[:, 0], ijv[:, 1]])
  
imports: import numpy
  import pytest
  import scipy.sparse.coo
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler.modules.convertobjectstoimage
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 11 for calling a global function with example usage: test_binary_ijv() without return types