code: def test_load_v1():
      file = tests.frontend.modules.get_test_resources_directory(
          "labelimages/v1.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()) == 2
      module = pipeline.modules()[0]
      assert isinstance(
          module, cellprofiler.modules.labelimages.LabelImages
      )
      assert module.site_count == 3
      assert module.row_count == 32
      assert module.column_count == 48
      assert module.order == cellprofiler.modules.labelimages.O_COLUMN
  
      module = pipeline.modules()[1]
      assert isinstance(
          module, cellprofiler.modules.labelimages.LabelImages
      )
      assert module.site_count == 1
      assert module.row_count == 8
      assert module.column_count == 12
      assert module.order == cellprofiler.modules.labelimages.O_ROW
  
file_path: CellProfiler/tests/frontend/modules/test_labelimages.py
imports: import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import M_SITE, M_ROW, M_COLUMN, M_PLATE, M_WELL
  import cellprofiler.modules.labelimages
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_v1() without return types