code: def test_load_v3():
      file = tests.frontend.modules.get_test_resources_directory(
          "filterobjects/v3.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.x_name == "Things"
      assert module.y_name == "FilteredThings"
      assert (
          module.mode
          == cellprofiler.modules.filterobjects.MODE_MEASUREMENTS
      )
      assert (
          module.rules_directory.dir_choice
          == cellprofiler_core.preferences.DEFAULT_OUTPUT_FOLDER_NAME
      )
      assert module.rules_file_name == "myrules.txt"
      assert (
          module.measurements[0].measurement
          == "Intensity_MeanIntensity_DNA"
      )
      assert (
          module.filter_choice
          == cellprofiler.modules.filterobjects.FI_MINIMAL
      )
  
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 17 for calling a global function with example usage: test_load_v3() without return types