code: def test_multi_pipeline_caching_with_cache(data_setup, cache_cleanup):
      train, _ = data_setup
      cache = OperationsCache()
  
      main_pipeline = pipeline_second()
      other_pipeline = pipeline_first()
  
      # fit other_pipeline that contains the parts identical to main_pipeline
      other_pipeline.fit(input_data=train)
      cache.save_pipeline(other_pipeline)
  
      nodes_with_non_actual_cache = [
          main_pipeline.root_node,
          main_pipeline.root_node.nodes_from[0],
      ] + [_ for _ in main_pipeline.root_node.nodes_from[0].nodes_from]
      nodes_with_actual_cache = [
          node
          for node in main_pipeline.nodes
          if node not in nodes_with_non_actual_cache
      ]
  
      # check that using of other_pipeline make identical of the main_pipeline fitted,
      # despite the main_pipeline.fit() was not called
      cache.try_load_nodes(nodes_with_actual_cache)
      assert all(
          node.fitted_operation is not None
          for node in nodes_with_actual_cache
      )
      # the non-identical parts are still not fitted
      cache.try_load_nodes(nodes_with_non_actual_cache)
      assert all(
          node.fitted_operation is None
          for node in nodes_with_non_actual_cache
      )
  
      # check the same case with another pipelines
      cache.reset()
  
      main_pipeline = pipeline_fourth()
  
      prev_pipeline_first = pipeline_third()
      prev_pipeline_second = pipeline_fifth()
  
      prev_pipeline_first.fit(input_data=train)
      cache.save_pipeline(prev_pipeline_first)
      prev_pipeline_second.fit(input_data=train)
      cache.save_pipeline(prev_pipeline_second)
  
      nodes_with_non_actual_cache = [
          main_pipeline.root_node,
          main_pipeline.root_node.nodes_from[1],
      ]
      nodes_with_actual_cache = [
          child
          for child in main_pipeline.root_node.nodes_from[0].nodes_from
      ]
  
      cache.try_load_nodes(nodes_with_non_actual_cache)
      assert all(
          node.fitted_operation is None
          for node in nodes_with_non_actual_cache
      )
      cache.try_load_nodes(nodes_with_actual_cache)
      assert all(
          node.fitted_operation is not None
          for node in nodes_with_actual_cache
      )
  
imports: import glob
  import os
  import numpy
  import pytest
  from sklearn.datasets import load_breast_cancer
  from fedot.core.caching.pipelines_cache import OperationsCache
  from fedot.core.data.data import InputData
  from fedot.core.data.data_split import train_test_data_setup
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 14 for calling a global function with example usage: test_multi_pipeline_caching_with_cache(data_setup, cache_cleanup) without return types