code: def test_load_v5():
      file = tests.frontend.modules.get_test_resources_directory(
          "splitormergeobjects/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.loadtxt(six.moves.StringIO(data))
      module = pipeline.modules()[0]
  
      assert module.objects_name.value == "IdentifyPrimaryObjects"
      assert module.output_objects_name.value == "SplitOrMergeObjects"
      assert module.relabel_option.value == "Merge"
      assert module.distance_threshold.value == 0
      assert not module.wants_image.value
      assert module.image_name.value == "None"
      assert module.minimum_intensity_fraction.value == 0.9
      assert module.where_algorithm.value == "Closest point"
      assert module.merge_option.value == "Distance"
      assert module.parent_object.value == "None"
      assert module.merging_method.value == "Disconnected"
  
imports: import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, FF_COUNT, FF_PARENT, COLTYPE_FLOAT, M_NUMBER_OBJECT_NUMBER, COLTYPE_INTEGER, FF_CHILDREN_COUNT
  import cellprofiler.modules.splitormergeobjects
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_v5() without return types