code: def test_volumetric_measurements():
      # Test that a volumetric pipeline returns volumetric measurements
      labels = numpy.zeros((10, 20, 40), dtype=numpy.uint8)
      labels[:, 5:15, 25:35] = 1
      labels[:, 7, 27] = 2
  
      workspace = make_workspace(labels, dimensions=3)
      workspace.pipeline.set_volumetric(True)
      module = workspace.module
      module.run(workspace)
  
      # Names and values will be associated directly
      names = [
          "_".join(
              [
                  cellprofiler.modules.measureimagequality.C_IMAGE_QUALITY,
                  feature,
                  IMAGES_NAME,
              ]
          )
          for feature in [
              cellprofiler.modules.measureimagequality.F_TOTAL_VOLUME,
              cellprofiler.modules.measureimagequality.F_TOTAL_INTENSITY,
              cellprofiler.modules.measureimagequality.F_MEAN_INTENSITY,
              cellprofiler.modules.measureimagequality.F_MEDIAN_INTENSITY,
              cellprofiler.modules.measureimagequality.F_STD_INTENSITY,
              cellprofiler.modules.measureimagequality.F_MAD_INTENSITY,
              cellprofiler.modules.measureimagequality.F_MAX_INTENSITY,
              cellprofiler.modules.measureimagequality.F_MIN_INTENSITY,
          ]
      ]
      values = [
          8000,
          3.9607843137254903,
          0.0004950980392156863,
          0.0,
          0.0013171505688094403,
          0.0,
          0.00784313725490196,
          0.0,
      ]
      expected = dict(list(zip(names, values)))
  
      for feature, value in list(expected.items()):
          assert workspace.measurements.has_current_measurements(
              "Image", feature
          )
  
          actual = workspace.measurements.get_current_measurement(
              "Image", feature
          )
  
          numpy.testing.assert_almost_equal(actual, value, decimal=5)
          print(
              ("{} expected {}, got {}".format(feature, value, actual))
          )
  
imports: import io
  import centrosome.threshold
  import numpy
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT, EXPERIMENT
  from cellprofiler_core.constants.module._identify import O_FOREGROUND, O_THREE_CLASS, O_WEIGHTED_VARIANCE, O_TWO_CLASS, O_ENTROPY, O_BACKGROUND
  import cellprofiler.modules.measureimagequality
  import cellprofiler_core.modules.namesandtypes
  import cellprofiler.modules.smooth
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 23 for calling a global function with example usage: test_volumetric_measurements() without return types