code: def test_incremental_update(runhistory, config1):
      runhistory.add(
          config=config1,
          cost=10,
          time=20,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
      )
  
      assert runhistory.get_cost(config1) == 10
  
      runhistory.add(
          config=config1,
          cost=20,
          time=20,
          status=StatusType.SUCCESS,
          instance=2,
          seed=1,
      )
  
      assert runhistory.get_cost(config1) == 15
  
imports: from __future__ import annotations
  import os
  import pickle
  import tempfile
  import pytest
  from smac.runhistory.runhistory import RunHistory, TrialKey
  from smac.runner.abstract_runner import StatusType
label_desc: Use image node_id 11 for calling a global function with example usage: test_incremental_update(runhistory, config1) without return types