code: def test_expand():
      """Expand an object once"""
      labels = numpy.zeros((10, 10), int)
      labels[4, 4] = 1
      expected = numpy.zeros((10, 10), int)
      expected[
          numpy.array([4, 3, 4, 5, 4], int),
          numpy.array([3, 4, 4, 4, 5], int),
      ] = 1
      workspace, module = make_workspace(
          labels, cellprofiler.modules.expandorshrinkobjects.O_EXPAND
      )
      module.run(workspace)
      objects = workspace.object_set.get_objects(OUTPUT_NAME)
      assert numpy.all(objects.segmented == expected)
      assert OUTLINES_NAME not in workspace.get_outline_names()
      m = workspace.measurements
      assert isinstance(m, cellprofiler_core.measurement.Measurements)
      count = m.get_current_image_measurement("Count_" + OUTPUT_NAME)
      if not numpy.isscalar(count):
          count = count[0]
      assert count == 1
      location_x = m.get_current_measurement(
          OUTPUT_NAME, "Location_Center_X"
      )
      assert len(location_x) == 1
      assert location_x[0] == 4
      location_y = m.get_current_measurement(
          OUTPUT_NAME, "Location_Center_Y"
      )
      assert len(location_y) == 1
      assert location_y[0] == 4
  
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 2 for calling a global function with example usage: test_expand() without return types