code: def test_load_v3():
      file = tests.frontend.modules.get_test_resources_directory(
          "resize/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()) == 2
      module = pipeline.modules()[0]
      assert isinstance(module, cellprofiler.modules.resize.Resize)
      assert module.x_name == "DNA"
      assert module.y_name == "ResizedDNA"
      assert module.size_method == cellprofiler.modules.resize.R_TO_SIZE
      assert round(abs(module.resizing_factor_x.value - 0.25), 7) == 0
      assert round(abs(module.resizing_factor_y.value - 0.25), 7) == 0
      assert round(abs(module.resizing_factor_z.value - 1), 7) == 0
      assert module.specific_width == 141
      assert module.specific_height == 169
      assert (
          module.interpolation == cellprofiler.modules.resize.I_BILINEAR
      )
      assert module.additional_image_count.value == 1
      additional_image = module.additional_images[0]
      assert additional_image.input_image_name == "Actin"
      assert additional_image.output_image_name == "ResizedActin"
  
      module = pipeline.modules()[1]
      assert isinstance(module, cellprofiler.modules.resize.Resize)
      assert (
          module.interpolation == cellprofiler.modules.resize.I_BICUBIC
      )
  
imports: import io
  import numpy
  import numpy.testing
  import skimage.exposure
  import skimage.transform
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.resize
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_v3() without return types