code: def test_load_v3():
      file = tests.frontend.modules.get_test_resources_directory(
          "measureobjectintensitydistribution/v3.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(io.StringIO(data))
      assert len(pipeline.modules()) == 1
      module = pipeline.modules()[0]
      assert isinstance(
          module,
          cellprofiler.modules.measureobjectintensitydistribution.MeasureObjectIntensityDistribution,
      )
      assert module.object_count.value == 3
      assert module.bin_counts_count.value == 2
      assert {"OrigBlue", "EnhancedGreen"}.issubset(
          module.images_list.value
      )
      assert module.objects[0].object_name == "Nuclei"
      assert (
          module.objects[0].center_choice
          == cellprofiler.modules.measureobjectintensitydistribution.C_SELF
      )
      assert module.objects[0].center_object_name == "Cells"
      assert (
          module.objects[1].center_choice
          == cellprofiler.modules.measureobjectintensitydistribution.C_CENTERS_OF_OTHER
      )
      assert module.objects[1].center_object_name == "Cells"
      assert (
          module.objects[2].center_choice
          == cellprofiler.modules.measureobjectintensitydistribution.C_EDGES_OF_OTHER
      )
      assert module.objects[2].center_object_name == "Cells"
      assert module.bin_counts[0].bin_count == 4
      assert not module.bin_counts[0].wants_scaled
      assert module.bin_counts[0].maximum_radius == 200
      assert module.bin_counts[1].bin_count == 5
      assert module.bin_counts[1].wants_scaled
      assert module.bin_counts[1].maximum_radius == 50
      assert len(module.heatmaps) == 0
  
imports: import io
  import centrosome.propagate
  import numpy
  import scipy.stats
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.measureobjectintensitydistribution
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 6 for calling a global function with example usage: test_load_v3() without return types