code: def test_instances(scenario, runhistory, config1, config2):
      runhistory.multi_objective_algorithm = MeanAggregationStrategy(
          scenario
      )
  
      runhistory.add(
          config=config1,
          cost=[0, 10],
          time=5,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
          budget=0,
      )
  
      runhistory.add(
          config=config1,
          cost=[50, 20],
          time=10,
          status=StatusType.SUCCESS,
          instance=2,
          seed=1,
          budget=0,
      )
  
      runhistory.add(
          config=config1,
          cost=[75, 20],
          time=10,
          status=StatusType.SUCCESS,
          instance=3,
          seed=1,
          budget=0,
      )
  
      runhistory.add(
          config=config2,
          cost=[100, 30],
          time=15,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
          budget=0,
      )
  
      runhistory.add(
          config=config2,
          cost=[0, 30],
          time=15,
          status=StatusType.SUCCESS,
          instance=2,
          seed=1,
          budget=0,
      )
  
      assert runhistory._objective_bounds[0] == (0, 100)
      assert runhistory._objective_bounds[1] == (10, 30)
  
      # Average cost returns us the cost of the latest budget
      assert runhistory.get_cost(config1) == 0.375
      assert runhistory.get_cost(config2) == 0.75
  
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 16 for calling a global function with example usage: test_instances(scenario, runhistory, config1, config2) without return types