code: def test_resize_volume_factor_color_resize_z():
      numpy.random.seed(73)
  
      data = numpy.random.rand(10, 10, 10, 3)
  
      mask = data[:, :, :, 0] > 0.5
  
      crop_mask = numpy.zeros_like(mask, dtype=bool)
  
      crop_mask[1:-1, 1:-1, 1:-1] = True
  
      workspace, module = make_workspace(
          data,
          cellprofiler.modules.resize.R_BY_FACTOR,
          cellprofiler.modules.resize.I_NEAREST_NEIGHBOR,
          mask=mask,
          cropping=crop_mask,
          dimensions=3,
      )
  
      module.resizing_factor_x.value = (
          module.resizing_factor_y.value
      ) = 2.5
  
      module.resizing_factor_z.value = 2.5
  
      module.run(workspace)
  
      actual = workspace.image_set.get_image(OUTPUT_IMAGE_NAME)
  
      expected_data = numpy.zeros((25, 25, 25, 3), dtype=data.dtype)
  
      for idx in range(3):
          expected_data[:, :, :, idx] = skimage.transform.resize(
              data[:, :, :, idx],
              (25, 25, 25),
              order=0,
              mode="symmetric",
          )
  
      expected_mask = skimage.img_as_bool(
          skimage.transform.resize(
              mask, (25, 25, 25), order=0, mode="constant"
          )
      )
  
      expected_crop_mask = skimage.img_as_bool(
          skimage.transform.resize(
              crop_mask, (25, 25, 25), order=0, mode="constant"
          )
      )
  
      assert actual.volumetric
  
      numpy.testing.assert_array_almost_equal(
          actual.pixel_data, expected_data
      )
  
      numpy.testing.assert_array_almost_equal(
          actual.mask, expected_mask
      )
  
      numpy.testing.assert_array_almost_equal(
          actual.crop_mask, expected_crop_mask
      )
  
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 21 for calling a global function with example usage: test_resize_volume_factor_color_resize_z() without return types