code: def test_preds_before_and_after_convert_equal():
      """Check if the pipeline predictions change before and after conversion
      through the adapter
      """
      init_alpha = 12.1
      pipeline = pipeline_with_custom_parameters(init_alpha)
  
      # Generate data
      input_data = get_synthetic_regression_data(
          n_samples=10, n_features=2, random_state=2021
      )
      # Init fit
      pipeline.fit(input_data)
      init_preds = pipeline.predict(input_data)
  
      # Convert into OptGraph object
      adapter = PipelineAdapter()
      opt_graph = adapter.adapt(pipeline)
      restored_pipeline = adapter.restore(opt_graph)
  
      # Restored pipeline fit
      restored_pipeline.fit(input_data)
      restored_preds = restored_pipeline.predict(input_data)
  
      assert np.array_equal(init_preds.predict, restored_preds.predict)
  
imports: from copy import deepcopy
  from random import choice
  import numpy
  import pytest
  from golem.core.dag.graph_node import GraphNode
  from golem.core.dag.graph_verifier import GraphVerifier
  from golem.core.dag.verification_rules import DEFAULT_DAG_RULES
  from golem.core.optimisers.graph import OptNode
  from fedot.core.operations.operation import Operation
  from fedot.core.pipelines.adapters import PipelineAdapter
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.pipelines.pipeline_builder import PipelineBuilder
  from test.unit.dag.test_graph_utils import find_first
  from test.unit.tasks.test_regression import get_synthetic_regression_data
label_desc: Use image node_id 5 for calling a global function with example usage: test_preds_before_and_after_convert_equal() without return types