code: def test_load_v10():
      file = tests.frontend.modules.get_test_resources_directory(
          "identifysecondaryobjects/v10.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))
      module = pipeline.modules()[0]
  
      assert module.x_name.value == "IdentifyPrimaryObjects"
      assert module.y_name.value == "IdentifySecondaryObjects"
      assert module.method.value == "Propagation"
      assert module.image_name.value == "DNA"
      assert module.distance_to_dilate.value == 10
      assert module.regularization_factor.value == 0.05
      assert not module.wants_discard_edge.value
      assert not module.wants_discard_primary.value
      assert module.new_primary_objects_name.value == "FilteredNuclei"
      assert module.fill_holes.value
  
imports: import io
  import centrosome.threshold
  import numpy
  from cellprofiler_core.constants.measurement import FF_COUNT, COLTYPE_FLOAT, COLTYPE_INTEGER, R_FIRST_IMAGE_NUMBER, R_SECOND_IMAGE_NUMBER, R_FIRST_OBJECT_NUMBER, R_SECOND_OBJECT_NUMBER
  from cellprofiler_core.constants.module._identify import TS_GLOBAL, O_TWO_CLASS, O_FOREGROUND
  import tests.frontend.modules
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.identifysecondaryobjects
  import cellprofiler.modules.threshold
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_v10() without return types