code: def test_shrink():
      """Shrink once"""
      labels = numpy.zeros((10, 10), int)
      labels[1:9, 1:9] = 1
      expected = centrosome.cpmorphology.thin(labels, iterations=1)
      workspace, module = make_workspace(
          labels, cellprofiler.modules.expandorshrinkobjects.O_SHRINK, 1
      )
      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 8 for calling a global function with example usage: test_shrink() without return types