code: def test_run_volume():
      labels = numpy.zeros((10, 20, 40), dtype=numpy.uint8)
      labels[:, 5:15, 25:35] = 1
  
      workspace, module = make_workspace(labels)
      workspace.pipeline.set_volumetric(True)
      module.run(workspace)
  
      for feature in [
          cellprofiler.modules.measureobjectsizeshape.F_VOLUME,
          cellprofiler.modules.measureobjectsizeshape.F_EXTENT,
          cellprofiler.modules.measureobjectsizeshape.F_CENTER_X,
          cellprofiler.modules.measureobjectsizeshape.F_CENTER_Y,
          cellprofiler.modules.measureobjectsizeshape.F_CENTER_Z,
          cellprofiler.modules.measureobjectsizeshape.F_SURFACE_AREA,
      ]:
          assert workspace.measurements.has_current_measurements(
              OBJECTS_NAME,
              cellprofiler.modules.measureobjectsizeshape.AREA_SHAPE
              + "_"
              + feature,
          )
  
          assert (
              len(
                  workspace.measurements.get_current_measurement(
                      OBJECTS_NAME,
                      cellprofiler.modules.measureobjectsizeshape.AREA_SHAPE
                      + "_"
                      + feature,
                  )
              )
              == 1
          )
  
      # Assert AreaShape_Center_X and AreaShape_Center_Y aren't flipped. See:
      # https://github.com/CellProfiler/CellProfiler/issues/3352
      center_x = workspace.measurements.get_current_measurement(
          OBJECTS_NAME,
          "_".join(
              [
                  cellprofiler.modules.measureobjectsizeshape.AREA_SHAPE,
                  cellprofiler.modules.measureobjectsizeshape.F_CENTER_X,
              ]
          ),
      )[0]
  
      assert center_x == 29.5
  
      center_y = workspace.measurements.get_current_measurement(
          OBJECTS_NAME,
          "_".join(
              [
                  cellprofiler.modules.measureobjectsizeshape.AREA_SHAPE,
                  cellprofiler.modules.measureobjectsizeshape.F_CENTER_Y,
              ]
          ),
      )[0]
  
      assert center_y == 9.5
  
imports: import io
  import os
  import numpy
  import skimage.io
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules.injectimage
  import cellprofiler.modules.measureobjectsizeshape
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import tests.frontend
  import tests.frontend.modules
label_desc: Use image node_id 14 for calling a global function with example usage: test_run_volume() without return types