code: def test_adapt_verification_rules_pipeline(rule):
      """Test that pipeline verification rules behave as expected with new adapter."""
  
      opt_graph, pipeline, adapter = get_valid_pipeline()
  
      # sanity check
      assert rule(pipeline)
  
      adapted_rule = adapter.adapt_func(rule)
  
      # adapted rules can accept both opt graphs and pipelines
      assert adapted_rule(opt_graph)
      assert adapted_rule(pipeline)
  
imports: import pytest
  from fedot.core.pipelines.adapters import PipelineAdapter
  from fedot.core.pipelines.pipeline_builder import PipelineBuilder
  from fedot.core.pipelines.verification_rules import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_adapt_verification_rules_pipeline(rule) without return types