code: def test_load_v5():
      file = tests.frontend.modules.get_test_resources_directory(
          "filterobjects/v5.pipeline"
      )
      with open(file, "r") as fd:
          data = fd.read()
  
      pipeline = cellprofiler_core.pipeline.Pipeline()
  
      def callback(caller, event):
          assert not isinstance(
              event, cellprofiler_core.pipeline.event.LoadException
          )
  
      pipeline.add_listener(callback)
      pipeline.load(io.StringIO(data))
      assert len(pipeline.modules()) == 1
      module = pipeline.modules()[-1]
      assert isinstance(
          module, cellprofiler.modules.filterobjects.FilterObjects
      )
      assert module.y_name == "MyFilteredObjects"
      assert module.x_name == "MyObjects"
      assert (
          module.mode
          == cellprofiler.modules.filterobjects.MODE_MEASUREMENTS
      )
      assert (
          module.filter_choice
          == cellprofiler.modules.filterobjects.FI_LIMITS
      )
      assert (
          module.rules_directory.dir_choice
          == cellprofiler_core.preferences.DEFAULT_INPUT_FOLDER_NAME
      )
      assert module.rules_directory.custom_path == "./rules"
      assert module.rules_file_name == "myrules.txt"
      assert module.rules_class == "1"
      assert module.measurement_count.value == 2
      assert module.additional_object_count.value == 2
      assert (
          module.measurements[0].measurement
          == "Intensity_LowerQuartileIntensity_DNA"
      )
      assert module.measurements[0].wants_minimum
      assert not module.measurements[0].wants_maximum
      assert (
          round(abs(module.measurements[0].min_limit.value - 0.2), 7)
          == 0
      )
      assert (
          round(abs(module.measurements[0].max_limit.value - 1.5), 7)
          == 0
      )
      assert (
          module.measurements[1].measurement
          == "Intensity_UpperQuartileIntensity_DNA"
      )
      assert not module.measurements[1].wants_minimum
      assert module.measurements[1].wants_maximum
      assert (
          round(abs(module.measurements[1].min_limit.value - 0.9), 7)
          == 0
      )
      assert (
          round(abs(module.measurements[1].max_limit.value - 1.8), 7)
          == 0
      )
      for group, name in zip(
          module.additional_objects, ("Cells", "Cytoplasm")
      ):
          assert group.object_name == name
          assert group.target_name == "Filtered%s" % name
  
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 19 for calling a global function with example usage: test_load_v5() without return types