code: def test_load_v4():
      file = tests.frontend.modules.get_test_resources_directory(
          "enhanceorsuppressfeatures/v4.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()) == 2
      module = pipeline.modules()[0]
      assert isinstance(
          module,
          cellprofiler.modules.enhanceorsuppressfeatures.EnhanceOrSuppressFeatures,
      )
      assert module.x_name == "Dendrite"
      assert module.y_name == "EnhancedDendrite"
      assert (
          module.method
          == cellprofiler.modules.enhanceorsuppressfeatures.ENHANCE
      )
      assert (
          module.enhance_method
          == cellprofiler.modules.enhanceorsuppressfeatures.E_NEURITES
      )
      assert module.smoothing == 2.0
      assert module.object_size == 10
      assert module.hole_size.min == 1
      assert module.hole_size.max == 10
      assert module.angle == 0
      assert module.decay == 0.95
      assert (
          module.neurite_choice
          == cellprofiler.modules.enhanceorsuppressfeatures.N_TUBENESS
      )
  
      module = pipeline.modules()[1]
      assert isinstance(
          module,
          cellprofiler.modules.enhanceorsuppressfeatures.EnhanceOrSuppressFeatures,
      )
      assert (
          module.neurite_choice
          == cellprofiler.modules.enhanceorsuppressfeatures.N_GRADIENT
      )
  
imports: import io
  import os.path
  import centrosome.filter
  import numpy
  import pytest
  import scipy.ndimage
  import skimage.exposure
  import skimage.filters
  import skimage.transform
  import tests.frontend.modules
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler.modules.enhanceorsuppressfeatures
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import tests.frontend
label_desc: Use image node_id 32 for calling a global function with example usage: test_load_v4() without return types