code: def test_stretch(image, module, workspace):
      data = image.pixel_data
  
      module.rescale_method.value = (
          "Stretch each image to use the full intensity range"
      )
  
      module.run(workspace)
  
      output = workspace.image_set.get_image("RescaleIntensity")
  
      actual = output.pixel_data
  
      expected = skimage.exposure.rescale_intensity(1.0 * data)
  
      numpy.testing.assert_array_equal(expected, actual)
  
      assert numpy.any(actual == 0.0)
  
      assert numpy.any(actual == 1.0)
  
imports: import base64
  import io
  import zlib
  import numpy
  import pytest
  import skimage.data
  import skimage.exposure
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler_core.modules.injectimage
  import cellprofiler.modules.rescaleintensity
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 5 for calling a global function with example usage: test_stretch(image, module, workspace) without return types