code: def test_small_removed():
      # Regression test of issue #1179
      #
      # neighbor_objects.small_removed_segmented + objects touching border
      # with higher object numbers
      #
      neighbors = numpy.zeros((11, 13), int)
      neighbors[5:7, 4:8] = 1
      neighbors_unedited = numpy.zeros((11, 13), int)
      neighbors_unedited[5:7, 4:8] = 1
      neighbors_unedited[0:4, 4:8] = 2
  
      objects = numpy.zeros((11, 13), int)
      objects[1:6, 5:7] = 1
  
      workspace, module = make_workspace(
          objects,
          cellprofiler.modules.measureobjectneighbors.D_WITHIN,
          neighbors_labels=neighbors,
      )
      no = workspace.object_set.get_objects(NEIGHBORS_NAME)
      no.small_removed_segmented = neighbors_unedited
      no.segmented = neighbors
      module.run(workspace)
      m = workspace.measurements
      v = m[
          OBJECTS_NAME,
          module.get_measurement_name(
              cellprofiler.modules.measureobjectneighbors.M_NUMBER_OF_NEIGHBORS
          ),
          1,
      ]
      assert len(v) == 1
      assert v[0] == 2
  
imports: import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER, COLTYPE_FLOAT, NEIGHBORS, R_FIRST_OBJECT_NUMBER, R_SECOND_OBJECT_NUMBER
  from cellprofiler_core.measurement import RelationshipKey
  import cellprofiler.modules.measureobjectneighbors
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 24 for calling a global function with example usage: test_small_removed() without return types