code: def test_renumber_other():
      """Renumber an associated object"""
      n = 40
      labels = numpy.zeros((10, n * 10), int)
      alternates = numpy.zeros((10, n * 10), int)
      for i in range(40):
          labels[2:5, i * 10 + 3 : i * 10 + 7] = i + 1
          alternates[3:7, i * 10 + 2 : i * 10 + 5] = i + 1
      numpy.random.seed(0)
      values = numpy.random.uniform(size=n)
      idx = 1
      my_min = 0.3
      my_max = 0.7
      expected = numpy.zeros(labels.shape, int)
      expected_alternates = numpy.zeros(alternates.shape, int)
      for i, value in zip(list(range(n)), values):
          if my_min <= value <= my_max:
              expected[labels == i + 1] = idx
              expected_alternates[alternates == i + 1] = idx
              idx += 1
      workspace, module = make_workspace(
          {INPUT_OBJECTS: labels, "my_alternates": alternates}
      )
      module.x_name.value = INPUT_OBJECTS
      module.y_name.value = OUTPUT_OBJECTS
      module.measurements[0].measurement.value = TEST_FTR
      module.filter_choice.value = (
          cellprofiler.modules.filterobjects.FI_LIMITS
      )
      module.measurements[0].min_limit.value = my_min
      module.measurements[0].max_limit.value = my_max
      module.add_additional_object()
      module.additional_objects[0].object_name.value = "my_alternates"
      module.additional_objects[
          0
      ].target_name.value = "my_additional_result"
      m = workspace.measurements
      m.add_measurement(INPUT_OBJECTS, TEST_FTR, values)
      module.run(workspace)
      labels = workspace.object_set.get_objects(OUTPUT_OBJECTS)
      alternates = workspace.object_set.get_objects(
          "my_additional_result"
      )
      assert numpy.all(labels.segmented == expected)
      assert numpy.all(alternates.segmented == expected_alternates)
  
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 16 for calling a global function with example usage: test_renumber_other() without return types