code: def test_measurements():
      workspace, module = make_workspace(
          object_dict={
              INPUT_OBJECTS: numpy.zeros((10, 10), dtype=numpy.uint8),
              "additional_objects": numpy.zeros(
                  (10, 10), dtype=numpy.uint8
              ),
          }
      )
  
      module.x_name.value = INPUT_OBJECTS
  
      module.y_name.value = OUTPUT_OBJECTS
  
      module.add_additional_object()
  
      module.additional_objects[
          0
      ].object_name.value = "additional_objects"
  
      module.additional_objects[
          0
      ].target_name.value = "additional_result"
  
      module.measurements[0].measurement.value = TEST_FTR
  
      module.filter_choice.value = (
          cellprofiler.modules.filterobjects.FI_MAXIMAL
      )
  
      measurements = workspace.measurements
  
      measurements.add_measurement(
          INPUT_OBJECTS, TEST_FTR, numpy.zeros((0,))
      )
  
      module.run(workspace)
  
      object_names = [
          (INPUT_OBJECTS, OUTPUT_OBJECTS),
          ("additional_objects", "additional_result"),
      ]
  
      for input_object_name, output_object_name in object_names:
          assert measurements.has_current_measurements(
              "Image",
              FF_COUNT % output_object_name,
          )
  
          assert measurements.has_current_measurements(
              input_object_name,
              FF_CHILDREN_COUNT % output_object_name,
          )
  
          output_object_features = [
              FF_PARENT % input_object_name,
              M_LOCATION_CENTER_X,
              M_LOCATION_CENTER_Y,
              M_LOCATION_CENTER_Z,
              M_NUMBER_OBJECT_NUMBER,
          ]
  
          for feature in output_object_features:
              assert measurements.has_current_measurements(
                  output_object_name, feature
              )
  
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 35 for calling a global function with example usage: test_measurements() without return types