code: def test_load_v3():
      file = tests.frontend.modules.get_test_resources_directory(
          "measureimageareaoccupied/v3.pipeline"
      )
      with open(file, "r") as fd:
          data = fd.read()
  
      def callback(caller, event):
          assert not isinstance(
              event, cellprofiler_core.pipeline.event.LoadException
          )
  
      pipeline = cellprofiler_core.pipeline.Pipeline()
      pipeline.add_listener(callback)
      pipeline.load(six.StringIO(data))
  
      module = pipeline.modules()[0]
  
      assert module.operand_choice.value == "Both"
      assert module.images_list.value_text == "DNA"
      assert len(module.objects_list.value) == 2
      assert set(module.objects_list.value) == {"Nuclei", "Cells"}
  
file_path: CellProfiler/tests/frontend/modules/test_measureimageareaoccupied.py
imports: import numpy
  import six
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.measureimageareaoccupied
  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 8 for calling a global function with example usage: test_load_v3() without return types