code: def test_save_load_atomized_pipeline_correctly():
      pipeline = create_pipeline_with_several_nested_atomized_model()
  
      json_actual, _ = pipeline.save(
          "test_save_load_atomized_pipeline_correctly",
          create_subdir=False,
      )
  
      json_path_load = create_correct_path(
          "test_save_load_atomized_pipeline_correctly"
      )
  
      with open(json_path_load, "r") as json_file:
          json_expected = json.load(json_file)
  
      pipeline_loaded = Pipeline.from_serialized(json_path_load)
  
      assert pipeline.length == pipeline_loaded.length
      assert json_actual == json.dumps(json_expected, indent=4)
  
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 9 for calling a global function with example usage: test_save_load_atomized_pipeline_correctly() without return types