code: def test_load_v4():
      data = """CellProfiler Pipeline: http://www.cellprofiler.org
  Version:3
  DateRevision:20141015195823
  GitHash:051040e
  ModuleCount:1
  HasImagePlaneDetails:False
  
  MeasureImageOverlap:[module_num:1|svn_version:\'Unknown\'|variable_revision_number:4|show_window:False|notes:\x5B\x5D|batch_state:array(\x5B\x5D, dtype=uint8)|enabled:True|wants_pause:False]
  Compare segmented objects, or foreground/background?:Foreground/background segmentation
  Select the image to be used as the ground truth basis for calculating the amount of overlap:Foo
  Select the image to be used to test for overlap:Bar
  Select the objects to be used as the ground truth basis for calculating the amount of overlap:Cell2_0
  Select the objects to be tested for overlap against the ground truth:Cell2_1
  Calculate earth mover\'s distance?:Yes
  Maximum # of points:101
  Point selection method:Skeleton
  Maximum distance:102
  Penalize missing pixels:Yes
  """
      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))
  
      module = pipeline.modules()[0]
      assert isinstance(
          module,
          cellprofiler.modules.measureimageoverlap.MeasureImageOverlap,
      )
      assert module.ground_truth == "Foo"
      assert module.test_img == "Bar"
  
imports: import io
  import numpy
  import numpy.random
  import numpy.testing
  import scipy.ndimage
  import cellprofiler_library.opts.measureimageoverlap
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.measureimageoverlap
  import tests.frontend.modules
label_desc: Use image node_id 3 for calling a global function with example usage: test_load_v4() without return types