code: def test_quartiles_uniform(
      image, measurements, module, objects, workspace
  ):
      """test quartile values on a 250x250 square filled with uniform values"""
      labels = numpy.ones((250, 250), int)
  
      numpy.random.seed(0)
  
      data = numpy.random.uniform(size=(250, 250))
  
      image.pixel_data = data
  
      objects.segmented = labels
  
      module.run(workspace)
  
      feature_name = "%s_%s_%s" % (
          cellprofiler.modules.measureobjectintensity.INTENSITY,
          cellprofiler.modules.measureobjectintensity.LOWER_QUARTILE_INTENSITY,
          "MyImage",
      )
  
      data = measurements.get_current_measurement(
          "MyObjects", feature_name
      )
  
      numpy.testing.assert_almost_equal(data[0], 0.25, 2)
  
      feature_name = "%s_%s_%s" % (
          cellprofiler.modules.measureobjectintensity.INTENSITY,
          cellprofiler.modules.measureobjectintensity.MEDIAN_INTENSITY,
          "MyImage",
      )
  
      data = measurements.get_current_measurement(
          "MyObjects", feature_name
      )
  
      numpy.testing.assert_almost_equal(data[0], 0.50, 2)
  
      feature_name = "%s_%s_%s" % (
          cellprofiler.modules.measureobjectintensity.INTENSITY,
          cellprofiler.modules.measureobjectintensity.MAD_INTENSITY,
          "MyImage",
      )
  
      data = measurements.get_current_measurement(
          "MyObjects", feature_name
      )
  
      numpy.testing.assert_almost_equal(data[0], 0.25, 2)
  
      feature_name = "%s_%s_%s" % (
          cellprofiler.modules.measureobjectintensity.INTENSITY,
          cellprofiler.modules.measureobjectintensity.UPPER_QUARTILE_INTENSITY,
          "MyImage",
      )
  
      data = measurements.get_current_measurement(
          "MyObjects", feature_name
      )
  
      numpy.testing.assert_almost_equal(data[0], 0.75, 2)
  
imports: import math
  import centrosome.outline
  import numpy
  import numpy.testing
  import pytest
  import skimage.measure
  import skimage.segmentation
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import EXPERIMENT, COLTYPE_FLOAT, C_LOCATION
  import cellprofiler.modules.measureobjectintensity
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 17 for calling a global function with example usage: test_quartiles_uniform(image, measurements, module, objects, workspace) without return types