code: def test_export_import_for_one_pipeline_object_correctly():
      """
      This test checks whether it is possible to upload a new model to the same object. In other words,
       apply a sequence of commands to the pipeline object:
      - load_pipeline(path_first)
      - load_pipeline(path_second)
      - load_pipeline(path_third)
      and the last command will rewrite the pipeline object correctly.
      """
      pipeline_fitted = create_fitted_pipeline()
      json_first, _ = pipeline_fitted.save(
          "test_export_import_for_one_pipeline_object_correctly_2",
          create_subdir=False,
      )
  
      pipeline_fitted_after = create_pipeline()
      pipeline_fitted_after.save(
          "test_export_import_for_one_pipeline_object_correctly_1",
          create_subdir=False,
      )
  
      json_path_load_2 = create_correct_path(
          "test_export_import_for_one_pipeline_object_correctly_2"
      )
      pipeline_fitted_after.load(json_path_load_2)
  
      json_second, dict_fitted = pipeline_fitted_after.save(
          "test_export_import_for_one_pipeline_object_correctly_3",
          create_subdir=False,
      )
  
      assert json_first == json_second
      assert len(dict_fitted) == 10
      assert dict_fitted["operation_3"] is not None
  
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 18 for calling a global function with example usage: test_export_import_for_one_pipeline_object_correctly() without return types