code: def test_cache_actuality_after_model_change(
      data_setup, cache_cleanup
  ):
      """The non-affected nodes has actual cache after changing the model"""
  
      cache = OperationsCache()
  
      pipeline = pipeline_first()
      train, _ = data_setup
      pipeline.fit(input_data=train)
      cache.save_pipeline(pipeline)
      new_node = PipelineNode(operation_type="logit")
      pipeline.update_node(
          old_node=pipeline.root_node.nodes_from[0], new_node=new_node
      )
  
      root_parent_first = pipeline.root_node.nodes_from[0]
  
      nodes_with_non_actual_cache = [
          pipeline.root_node,
          root_parent_first,
      ]
      nodes_with_actual_cache = [
          node
          for node in pipeline.nodes
          if node not in nodes_with_non_actual_cache
      ]
  
      # non-affected nodes are actual
      cache.try_load_nodes(nodes_with_actual_cache)
      assert all(
          node.fitted_operation is not None
          for node in nodes_with_actual_cache
      )
      # affected nodes and their childs has no any actual cache
      cache.try_load_nodes(nodes_with_non_actual_cache)
      assert all(
          node.fitted_operation is None
          for node in nodes_with_non_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 10 for calling a global function with example usage: test_cache_actuality_after_model_change(data_setup, cache_cleanup) without return types