code: def test_load_v5():
      pipeline_file = os.path.join(
          get_data_directory(), "modules/metadata/v5.pipeline"
      )
      with open(pipeline_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()) == 1
      module = pipeline.modules()[0]
  
      em0, em1 = module.extraction_methods
  
      assert (
          em0.csv_location.get_dir_choice()
          == cellprofiler_core.preferences.ABSOLUTE_FOLDER_NAME
      )
      assert em0.csv_location.get_custom_path() == "/imaging/analysis"
      assert em0.csv_filename.value == "metadata.csv"
  
      assert (
          em1.csv_location.get_dir_choice()
          == cellprofiler_core.preferences.URL_FOLDER_NAME
      )
      assert (
          em1.csv_location.get_custom_path()
          == "https://cellprofiler.org"
      )
      assert em1.csv_filename.value == "metadata.csv"
  
imports: import io
  import json
  import os
  import tempfile
  import cellprofiler_core.constants.measurement
  import cellprofiler_core.constants.modules.images
  import cellprofiler_core.constants.modules.metadata
  import cellprofiler_core.measurement
  import cellprofiler_core.modules.images
  import cellprofiler_core.modules.metadata
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.core
label_desc: Use image node_id 6 for calling a global function with example usage: test_load_v5() without return types