code: def pipeline_by_task(task, metric, data, is_composed):
      if is_composed:
          pipeline = get_composed_pipeline(
              data, task, metric_function=metric
          )
      else:
          if task.task_type.name == "classification":
              pipeline = get_three_depth_manual_class_pipeline()
          else:
              pipeline = get_three_depth_manual_regr_pipeline()
  
      return pipeline
  
file_path: FEDOT/examples/advanced/structural_analysis/pipelines_access.py
imports: from golem.core.optimisers.genetic.gp_params import GPAlgorithmParameters
  from golem.core.optimisers.genetic.operators.inheritance import GeneticSchemeTypesEnum
  from fedot.core.pipelines.pipeline_composer_requirements import PipelineComposerRequirements
  from fedot.core.composer.composer_builder import ComposerBuilder
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.operation_types_repository import get_operations_for_task
label_desc: Use image node_id 4 for calling a global function with example usage: pipeline_by_task(task, metric, data, is_composed) and returns: pipeline