code: def test_incremental_update(scenario, runhistory, config1):
      runhistory.multi_objective_algorithm = MeanAggregationStrategy(
          scenario
      )
  
      runhistory.add(
          config=config1,
          cost=[10, 100],
          time=20,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
      )
  
      assert runhistory.get_cost(config1) == 1.0
  
      runhistory.add(
          config=config1,
          cost=[20, 50],
          time=20,
          status=StatusType.SUCCESS,
          instance=2,
          seed=1,
      )
  
      # We don't except moving average of 0.75 here because
      # the costs should always be updated.
      assert runhistory.get_cost(config1) == 0.5
  
      runhistory.add(
          config=config1,
          cost=[0, 100],
          time=20,
          status=StatusType.SUCCESS,
          instance=3,
          seed=1,
      )
  
      assert runhistory.get_cost(config1) == pytest.approx(0.583, 0.001)
  
imports: import pickle
  import tempfile
  import pytest
  from smac.multi_objective.aggregation_strategy import MeanAggregationStrategy
  from smac.runner.abstract_runner import StatusType
  from smac.scenario import Scenario
label_desc: Use image node_id 10 for calling a global function with example usage: test_incremental_update(scenario, runhistory, config1) without return types