code: def test_load_v5():
      file = tests.frontend.modules.get_test_resources_directory(
          "displaydataonimage/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.load(six.moves.StringIO(data))
      assert len(pipeline.modules()) == 1
      module = pipeline.modules()[0]
      assert isinstance(
          module,
          cellprofiler.modules.displaydataonimage.DisplayDataOnImage,
      )
      assert (
          module.objects_or_image
          == cellprofiler.modules.displaydataonimage.OI_OBJECTS
      )
      assert module.measurement == "AreaShape_Zernike_0_0"
      assert module.image_name == "DNA"
      assert module.text_color == "green"
      assert module.objects_name == "Nuclei"
      assert module.display_image == "Zernike"
      assert module.font_size == 10
      assert module.decimals == 2
      assert (
          module.saved_image_contents
          == cellprofiler.modules.displaydataonimage.E_AXES
      )
      assert module.offset == 5
      assert (
          module.color_or_text
          == cellprofiler.modules.displaydataonimage.CT_COLOR
      )
      assert module.colormap == "jet"
      assert not module.wants_image
      assert (
          module.color_map_scale_choice
          == cellprofiler.modules.displaydataonimage.CMS_USE_MEASUREMENT_RANGE
      )
      assert module.color_map_scale.min == 0
      assert module.color_map_scale.max == 1
  
imports: import centrosome.cpmorphology
  import numpy
  import pytest
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.displaydataonimage
  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_v5() without return types