code: def test_color_ijv():
      workspace, module, ijv = make_workspace_ijv()
      assert isinstance(
          module,
          cellprofiler.modules.convertobjectstoimage.ConvertObjectsToImage,
      )
      module.image_mode.value = "Color"
      module.run(workspace)
      pixel_data = workspace.image_set.get_image(IMAGE_NAME).pixel_data
      #
      # convert the labels into individual bits (1, 2, 4, 8)
      # the labels matrix is a matrix of bits that are on
      #
      vbit = 2 ** (ijv[:, 2] - 1)
      vbit_color = numpy.zeros((numpy.max(vbit) * 2, 3))
      bits = scipy.sparse.coo.coo_matrix(
          (vbit, (ijv[:, 0], ijv[:, 1]))
      ).toarray()
      #
      # Get some color for every represented bit combo
      #
      vbit_color[bits[ijv[:, 0], ijv[:, 1]], :] = pixel_data[
          ijv[:, 0], ijv[:, 1], :
      ]
  
      assert numpy.all(pixel_data == vbit_color[bits, :])
  
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 13 for calling a global function with example usage: test_color_ijv() without return types