code: def test_display_text():
      labels = numpy.zeros((50, 120), int)
      labels[10:20, 20:27] = 1
      labels[30:35, 35:50] = 2
      labels[5:18, 44:100] = 3
      for display in (
          cellprofiler.modules.displaydataonimage.E_AXES,
          cellprofiler.modules.displaydataonimage.E_FIGURE,
          cellprofiler.modules.displaydataonimage.E_IMAGE,
      ):
          workspace, module = make_workspace(
              ["First", "Second", "Third"], labels
          )
          module.saved_image_contents.value = display
          module.run(workspace)
          image = workspace.image_set.get_image(OUTPUT_IMAGE_NAME)
  
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 10 for calling a global function with example usage: test_display_text() without return types