code: def test_small_removed_same():
      # Regression test of issue #1672
      #
      # Objects with small removed failed.
      #
      objects = numpy.zeros((11, 13), int)
      objects[5:7, 1:3] = 1
      objects[6:8, 5:7] = 2
      objects_unedited = objects.copy()
      objects_unedited[0:2, 0:2] = 3
  
      workspace, module = make_workspace(
          objects,
          cellprofiler.modules.measureobjectneighbors.D_EXPAND,
          distance=1,
      )
      no = workspace.object_set.get_objects(OBJECTS_NAME)
      no.unedited_segmented = objects_unedited
      no.small_removed_segmented = objects
      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) == 2
      assert v[0] == 1
  
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 26 for calling a global function with example usage: test_small_removed_same() without return types