code: def test_load_v2():
      pipeline_file = os.path.join(
          get_data_directory(), "modules/groups/v2.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]
      assert isinstance(module, cellprofiler_core.modules.groups.Groups)
      assert module.wants_groups
      assert module.grouping_metadata_count.value == 1
      g0 = module.grouping_metadata[0]
      assert g0.metadata_choice == "Plate"
  
file_path: CellProfiler/tests/core/modules/test_groups.py
imports: import io
  import os
  import numpy
  import cellprofiler_core.constants.measurement
  import cellprofiler_core.measurement
  import cellprofiler_core.modules.groups
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.core
label_desc: Use image node_id 3 for calling a global function with example usage: test_load_v2() without return types