code: def test_discard_border_objects_volume():
      labels = numpy.zeros((9, 16, 16), dtype=numpy.uint8)
      labels[:3, 1:5, 1:5] = 1  # touches bottom z-slice
      labels[-3:, -5:-1, -5:-1] = 2  # touches top z-slice
      labels[2:7, 6:10, 6:10] = 3
      labels[2:5, :5, -5:-1] = 4  # touches top edge
      labels[6:9, -5:-1, :5] = 5  # touches left edge
  
      expected = numpy.zeros_like(labels)
      expected[2:7, 6:10, 6:10] = 1
  
      src_objects = cellprofiler_core.object.Objects()
      src_objects.segmented = labels
  
      workspace, module = make_workspace({INPUT_OBJECTS: labels})
  
      module.x_name.value = INPUT_OBJECTS
      module.y_name.value = OUTPUT_OBJECTS
      module.mode.value = cellprofiler.modules.filterobjects.MODE_BORDER
  
      module.run(workspace)
  
      output_objects = workspace.object_set.get_objects(OUTPUT_OBJECTS)
  
      numpy.testing.assert_array_equal(
          output_objects.segmented, expected
      )
  
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 36 for calling a global function with example usage: test_discard_border_objects_volume() without return types