code: def add_resample_mutation(pipeline: Pipeline, **kwargs):
      """
      Add resample operation before all primary operations in pipeline
  
      :param pipeline: pipeline to insert resample
  
      :return: mutated pipeline
      """
      resample_node = PipelineNode("resample")
  
      p_nodes = [p_node for p_node in pipeline.primary_nodes]
      pipeline.add_node(resample_node)
  
      for node in p_nodes:
          pipeline.connect_nodes(resample_node, node)
      return pipeline
  
file_path: FEDOT/fedot/core/composer/gp_composer/specific_operators.py
imports: from random import choice, random
  from typing import List
  from golem.core.optimisers.genetic.operators.base_mutations import get_mutation_prob
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.pipelines.tuning.hyperparams import ParametersChanger
  from fedot.core.repository.operation_types_repository import OperationTypesRepository
  from fedot.core.repository.tasks import TaskTypesEnum
label_desc: Use image node_id 3 for calling a global function with example usage: add_resample_mutation(pipeline) and returns: pipeline