code: def test_classify_keep_removed():
      labels = numpy.zeros((10, 10), int)
      labels[1:4, 1:4] = 1
      labels[5:7, 5:7] = 2
      workspace, module = make_workspace({INPUT_OBJECTS: labels})
      module.x_name.value = INPUT_OBJECTS
      module.y_name.value = OUTPUT_OBJECTS
      module.keep_removed_objects.value = True
      module.removed_objects_name.value = "RemovedObjects"
      with make_classifier(module, numpy.array([1, 2]), classes=[1, 2]):
          workspace.measurements[INPUT_OBJECTS, TEST_FTR] = numpy.zeros(
              2
          )
          module.run(workspace)
          output_objects = workspace.object_set.get_objects(
              OUTPUT_OBJECTS
          )
          removed_objects = workspace.object_set.get_objects(
              "RemovedObjects"
          )
          assert output_objects.count == 1
          assert removed_objects.count == 1
          labels_out = output_objects.get_labels()[0][0]
          numpy.testing.assert_array_equal(labels_out[1:4, 1:4], 1)
          numpy.testing.assert_array_equal(labels_out[5:7, 5:7], 0)
          removed_labels_out = removed_objects.get_labels()[0][0]
          numpy.testing.assert_array_equal(
              removed_labels_out[1:4, 1:4], 0
          )
          numpy.testing.assert_array_equal(
              removed_labels_out[5:7, 5:7], 1
          )
  
imports: import contextlib
  import io
  import os
  import pickle
  import tempfile
  import numpy
  import pytest
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules
  from cellprofiler_core.constants.measurement import FF_PARENT, FF_COUNT, FF_CHILDREN_COUNT, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, M_LOCATION_CENTER_Z, M_NUMBER_OBJECT_NUMBER
  import cellprofiler.modules.filterobjects
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 33 for calling a global function with example usage: test_classify_keep_removed() without return types