code: def test_boosting_mutation_for_linear_graph():
      """
      Tests boosting mutation can add correct boosting cascade
      """
  
      graph = PipelineAdapter().restore(get_simple_linear_graph())
      boosting_graph = get_simple_linear_boosting_pipeline()
      requirements = PipelineComposerRequirements(
          primary=["logit"], secondary=["logit"]
      )
      pipeline = boosting_mutation(
          graph,
          requirements,
          get_pipeline_generation_params(
              requirements=requirements,
              rules_for_constraint=DEFAULT_DAG_RULES,
              task=Task(TaskTypesEnum.classification),
          ),
      )
      data = file_data()
      pipeline.fit(data)
      result = pipeline.predict(data)
      assert pipeline.descriptive_id == boosting_graph.descriptive_id
      assert result is not None
  
imports: from copy import deepcopy
  from pathlib import Path
  import pytest
  from golem.core.dag.graph_node import GraphNode
  from golem.core.dag.verification_rules import DEFAULT_DAG_RULES
  from golem.core.optimisers.genetic.gp_params import GPAlgorithmParameters
  from golem.core.optimisers.genetic.operators.base_mutations import MutationStrengthEnum
  from golem.core.optimisers.genetic.operators.mutation import Mutation
  from golem.core.optimisers.graph import OptGraph, OptNode
  from golem.core.optimisers.optimizer import GraphGenerationParams
  from fedot.core.composer.gp_composer.specific_operators import boosting_mutation
  from fedot.core.data.data import InputData
  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 fedot.core.pipelines.pipeline_composer_requirements import PipelineComposerRequirements
  from fedot.core.pipelines.pipeline_graph_generation_params import get_pipeline_generation_params
  from fedot.core.repository.operation_types_repository import get_operations_for_task
  from fedot.core.repository.tasks import Task, TaskTypesEnum
  from test.integration.composer.test_composer import to_categorical_codes
  from test.unit.dag.test_graph_utils import find_first
  from test.unit.tasks.test_forecasting import get_ts_data
label_desc: Use image node_id 8 for calling a global function with example usage: test_boosting_mutation_for_linear_graph() without return types