code: def test_01_load_new_robust_background():
      #
      # Test custom robust background parameters.
      #
      file = tests.frontend.modules.get_test_resources_directory(
          "identifyprimaryobjects/robust_background.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))
      for module, averaging_method, variance_method in zip(
          pipeline.modules(),
          (
              RB_MEAN,
              RB_MEDIAN,
              RB_MODE,
          ),
          (
              RB_SD,
              RB_MAD,
              RB_MAD,
          ),
      ):
          assert isinstance(
              module,
              cellprofiler.modules.identifyprimaryobjects.IdentifyPrimaryObjects,
          )
          assert module.threshold.lower_outlier_fraction == 0.1
          assert module.threshold.upper_outlier_fraction == 0.2
          assert module.threshold.number_of_deviations == 2.5
          assert module.threshold.averaging_method == averaging_method
          assert module.threshold.variance_method == variance_method
          assert module.use_advanced.value
  
imports: import io
  import os
  import centrosome.threshold
  import numpy
  import pytest
  import scipy.ndimage
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import FF_COUNT, COLTYPE_INTEGER, FF_FINAL_THRESHOLD, COLTYPE_FLOAT, FF_ORIG_THRESHOLD, M_NUMBER_OBJECT_NUMBER, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, M_LOCATION_CENTER_Z, FF_SUM_OF_ENTROPIES, FF_WEIGHTED_VARIANCE
  from cellprofiler_core.constants.module._identify import TS_GLOBAL, TS_ADAPTIVE, O_TWO_CLASS, O_FOREGROUND, O_THREE_CLASS, O_BACKGROUND, RB_MODE, RB_SD, RB_MEAN, RB_MEDIAN, RB_MAD, TS_MANUAL, TS_MEASUREMENT
  from cellprofiler_core.image import VanillaImage
  import cellprofiler.modules.identifyprimaryobjects
  import cellprofiler.modules.threshold
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend
  import tests.frontend.modules
label_desc: Use image node_id 25 for calling a global function with example usage: test_01_load_new_robust_background() without return types