code: def test_add_multiple_times(runhistory, config1):
      for i in range(5):
          runhistory.add(
              config=config1,
              cost=i + 1,
              time=i + 1,
              status=StatusType.SUCCESS,
              instance=None,
              seed=12345,
              additional_info=None,
              budget=0,
          )
  
      assert len(runhistory._data) == 1
      assert (
          len(
              runhistory.get_trials(
                  config1, highest_observed_budget_only=True
              )
          )
          == 1
      )
      assert len(runhistory._config_id_to_isk_to_budget[1]) == 1
      assert list(runhistory._data.values())[0].cost == 1
  
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 6 for calling a global function with example usage: test_add_multiple_times(runhistory, config1) without return types