code: def volume(image):
      data = numpy.zeros((11, 11, 20))
  
      k, i, j = numpy.mgrid[-5:6, -5:6, -5:15]
      data[k**2 + i**2 + j**2 <= 25] = 0.5
      data[k**2 + i**2 + j**2 <= 16] = 0.25
      data[k**2 + i**2 + j**2 == 0] = 1
  
      k, i, j = numpy.mgrid[-5:6, -5:6, -15:5]
      data[k**2 + i**2 + j**2 <= 9] = 0.5
      data[k**2 + i**2 + j**2 <= 4] = 0.75
      data[k**2 + i**2 + j**2 == 0] = 1
  
      image.set_image(data, convert=False)
  
      image.dimensions = 3
  
      return image
  
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 5 for calling a global function with example usage: volume(image) and returns: image