code: def test_rescale_triple_color():
      i, j = numpy.mgrid[0:10, 0:10]
      image = numpy.zeros((10, 10, 3))
      image[:, :, 0] = i
      image[:, :, 1] = j
      image = skimage.exposure.rescale_intensity(1.0 * image)
      i, j = (numpy.mgrid[0:30, 0:30].astype(float) * 1.0 / 3.0).astype(
          int
      )
      expected = numpy.zeros((30, 30, 3))
      expected[:, :, 0] = i
      expected[:, :, 1] = j
      expected = skimage.exposure.rescale_intensity(1.0 * expected)
      workspace, module = make_workspace(
          image,
          cellprofiler.modules.resize.R_BY_FACTOR,
          cellprofiler.modules.resize.I_NEAREST_NEIGHBOR,
      )
      module.resizing_factor_x.value = (
          module.resizing_factor_y.value
      ) = 3.0
      module.run(workspace)
      result_image = workspace.image_set.get_image(OUTPUT_IMAGE_NAME)
      result = result_image.pixel_data
      numpy.testing.assert_array_almost_equal(result, expected)
      assert result_image.parent_image is workspace.image_set.get_image(
          INPUT_IMAGE_NAME
      )
  
imports: import io
  import numpy
  import numpy.testing
  import skimage.exposure
  import skimage.transform
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.resize
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 3 for calling a global function with example usage: test_rescale_triple_color() without return types