code: def test_expand_twice():
      '''Expand an object "twice"'''
      labels = numpy.zeros((10, 10), int)
      labels[4, 4] = 1
      i, j = numpy.mgrid[0:10, 0:10] - 4
      expected = (i**2 + j**2 <= 4).astype(int)
      workspace, module = make_workspace(
          labels, cellprofiler.modules.expandorshrinkobjects.O_EXPAND, 2
      )
      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 3 for calling a global function with example usage: test_expand_twice() without return types