code: def create_pipeline_with_several_nested_atomized_model() -> Pipeline:
      pipeline = Pipeline()
      atomized_op = create_atomized_model_with_several_atomized_models()
      node_atomized_model = PipelineNode(operation_type=atomized_op)
  
      node_atomized_model_secondary = PipelineNode(
          operation_type=create_atomized_model()
      )
      node_atomized_model_secondary.nodes_from = [node_atomized_model]
  
      node_knn = PipelineNode("knn")
      node_knn.parameters = {"n_neighbors": 9}
      node_knn.nodes_from = [node_atomized_model]
  
      node_knn_second = PipelineNode("knn")
      node_knn_second.parameters = {"n_neighbors": 5}
      node_knn_second.nodes_from = [
          node_atomized_model,
          node_atomized_model_secondary,
          node_knn,
      ]
  
      node_atomized_model_secondary_second = PipelineNode(
          operation_type=create_atomized_model_with_several_atomized_models()
      )
  
      node_atomized_model_secondary_second.nodes_from = [
          node_knn_second
      ]
  
      pipeline.add_node(node_atomized_model_secondary_second)
      return pipeline
  
imports: import json
  import os
  from functools import reduce
  import numpy
  import pytest
  from sklearn.metrics import mean_squared_error
  from fedot.core.composer.metrics import RMSE
  from fedot.core.data.data import InputData
  from fedot.core.operations.atomized_model import AtomizedModel
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.utils import fedot_project_root
  from test.integration.utilities.test_pipeline_import_export import create_correct_path, create_func_delete_files
label_desc: Use image node_id 5 for calling a global function with example usage: create_pipeline_with_several_nested_atomized_model() and returns: pipeline