code: def test_load_v2():
      file = tests.frontend.modules.get_test_resources_directory(
          "overlayoutlines/v2.pipeline"
      )
      with open(file, "r") as fd:
          data = fd.read()
  
      pipeline = cellprofiler_core.pipeline.Pipeline()
      pipeline.load(io.StringIO(data))
      assert len(pipeline.modules()) == 1
      module = pipeline.modules()[0]
      assert isinstance(
          module, cellprofiler.modules.overlayoutlines.OverlayOutlines
      )
      assert not module.blank_image
      assert module.image_name == "DNA"
      assert module.output_image_name == "PrimaryOverlay"
      assert module.wants_color == "Color"
      assert (
          module.max_type
          == cellprofiler.modules.overlayoutlines.MAX_IMAGE
      )
      assert module.line_mode.value == "Inner"
      assert len(module.outlines) == 2
      for outline, name, color in zip(
          module.outlines,
          ("PrimaryOutlines", "SecondaryOutlines"),
          ("Red", "Green"),
      ):
          assert outline.objects_name.value == "None"
          assert outline.color == color
  
imports: import io
  import numpy
  import numpy.testing
  import skimage.color
  import skimage.segmentation
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler.modules.overlayoutlines
  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 2 for calling a global function with example usage: test_load_v2() without return types