code: def test_shrink_from_measurement():
      """Shrink objects based on a measurement"""
      labels = numpy.zeros((10, 10), int)
      labels[1:9, 1:9] = 1
      measurement = [4]
      expected = centrosome.cpmorphology.binary_shrink(
          labels, iterations=measurement[0]
      )
      workspace, module = make_workspace(
          labels,
          cellprofiler.modules.expandorshrinkobjects.O_SHRINK_BY_MEASUREMENT,
      )
      m = workspace.measurements
      m.add_image_measurement(MEASUREMENT_NAME, measurement)
      module.exp_shr_measurement.value = MEASUREMENT_NAME
      module.run(workspace)
      objects = workspace.object_set.get_objects(OUTPUT_NAME)
      assert numpy.all(objects.segmented == expected)
  
imports: import centrosome.cpmorphology
  import centrosome.outline
  import numpy
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler.modules.expandorshrinkobjects
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import cellprofiler_core.measurement
label_desc: Use image node_id 11 for calling a global function with example usage: test_shrink_from_measurement() without return types