code: def create_pipeline() -> Pipeline:
      node_logit = PipelineNode("logit")
  
      node_lda = PipelineNode("lda")
      node_lda.parameters = {"n_components": 1}
  
      node_rf = PipelineNode("rf")
  
      node_knn = PipelineNode("knn")
      node_knn.parameters = {"n_neighbors": 9}
  
      node_knn_second = PipelineNode("knn")
      node_knn_second.parameters = {"n_neighbors": 5}
      node_knn_second.nodes_from = [node_lda, node_knn]
  
      node_logit_second = PipelineNode("logit")
      node_logit_second.nodes_from = [node_rf, node_lda]
  
      node_lda_second = PipelineNode("lda")
      node_lda_second.parameters = {"n_components": 1}
      node_lda_second.nodes_from = [
          node_logit_second,
          node_knn_second,
          node_logit,
      ]
  
      node_rf_second = PipelineNode("rf")
      node_rf_second.nodes_from = [
          node_logit,
          node_logit_second,
          node_knn,
      ]
  
      node_knn_third = PipelineNode("knn")
      node_knn_third.parameters = {"n_neighbors": 8}
      node_knn_third.nodes_from = [node_lda_second, node_rf_second]
  
      pipeline = Pipeline(node_knn_third)
  
      return pipeline
  
imports: import json
  import os
  import shutil
  import numpy
  import pytest
  from sklearn.metrics import mean_absolute_error
  from fedot import Fedot
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.pipelines.template import PipelineTemplate, extract_subtree_root
  from fedot.core.repository.tasks import Task, TaskTypesEnum
  from fedot.core.utils import fedot_project_root
  from test.integration.api.test_main_api import get_dataset
  from test.unit.data_operations.test_data_operations_implementations import get_mixed_data
  from test.unit.multimodal.data_generators import get_single_task_multimodal_tabular_data
  from test.unit.pipelines.test_decompose_pipelines import get_classification_data
  from test.unit.preprocessing.test_preprocessing_through_api import data_with_spaces_and_nans_in_features
  from test.unit.tasks.test_forecasting import get_multiscale_pipeline, get_simple_ts_pipeline, get_ts_data
label_desc: Use image node_id 5 for calling a global function with example usage: create_pipeline() and returns: pipeline