code: def check_improvement(history):
      first_pop = history.individuals[1]
      pareto_front = history.archive_history[-1]
  
      first_pop_metrics = get_mean_metrics(first_pop)
      pareto_front_metrics = get_mean_metrics(pareto_front)
  
      quality_1_improved = (
          pareto_front_metrics[0] < first_pop_metrics[0]
      )
      quality_2_improved = (
          pareto_front_metrics[1] < first_pop_metrics[1]
      )
      return quality_1_improved, quality_2_improved
  
file_path: FEDOT/test/integration/quality/test_quality_improvement.py
imports: import logging
  import warnings
  from typing import Sequence
  import numpy
  from fedot import Fedot
  from fedot.core.utils import fedot_project_root
label_desc: Use image node_id 3 for calling a global function with example usage: check_improvement(history) and returns: quality_1_improved,  quality_2_improved