code: def test_load_v9():
      file = tests.frontend.modules.get_test_resources_directory(
          "identifysecondaryobjects/v9.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()[-1]
      assert isinstance(
          module,
          cellprofiler.modules.identifysecondaryobjects.IdentifySecondaryObjects,
      )
      assert module.x_name == "ChocolateChips"
      assert module.y_name == "Cookies"
      assert module.image_name == "BakingSheet"
      assert (
          module.method
          == cellprofiler.modules.identifysecondaryobjects.M_PROPAGATION
      )
      assert module.distance_to_dilate == 11
      assert module.regularization_factor == 0.125
      assert module.wants_discard_edge
      assert not module.wants_discard_primary
      assert module.new_primary_objects_name == "FilteredChocolateChips"
      assert module.fill_holes
      assert module.threshold.threshold_scope == TS_GLOBAL
      assert (
          module.threshold.global_operation.value
          == cellprofiler.modules.threshold.TM_LI
      )
      assert module.threshold.threshold_smoothing_scale.value == 1.3488
      assert module.threshold.threshold_correction_factor == 1
      assert module.threshold.threshold_range.min == 0.0
      assert module.threshold.threshold_range.max == 1.0
      assert module.threshold.manual_threshold == 0.3
      assert (
          module.threshold.thresholding_measurement == "Count_Cookies"
      )
      assert module.threshold.two_class_otsu == O_TWO_CLASS
      assert (
          module.threshold.assign_middle_to_foreground == O_FOREGROUND
      )
      assert module.threshold.adaptive_window_size == 9
  
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 1 for calling a global function with example usage: test_load_v9() without return types