code: def test_load_v2():
      file = tests.frontend.modules.get_test_resources_directory(
          "measurecolocalization/v2.pipeline"
      )
      with open(file, "r") as fd:
          data = fd.read()
  
      fd = six.moves.StringIO(data)
      pipeline = cellprofiler_core.pipeline.Pipeline()
  
      def callback(caller, event):
          assert not isinstance(
              event, cellprofiler_core.pipeline.event.LoadException
          )
  
      pipeline.add_listener(callback)
      pipeline.load(fd)
      assert len(pipeline.modules()) == 1
      module = pipeline.modules()[-1]
      assert (
          module.images_or_objects.value
          == cellprofiler.modules.measurecolocalization.M_IMAGES_AND_OBJECTS
      )
      assert len(module.images_list.value) == 2
      assert module.thr == 15.0
      for name in module.images_list.value:
          assert name in ["DNA", "Cytoplasm"]
  
      assert len(module.objects_list.value) == 2
      for name in module.objects_list.value:
          assert name in ["Nuclei", "Cells"]
  
imports: import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.measurecolocalization
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_v2() without return types