code: def test_get_config_runs(runhistory, config1, config2):
      """
      get some config runs from runhistory
      """
      # Return max observed budget only
      runhistory.add(
          config=config1,
          cost=10,
          time=20,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
          budget=1,
      )
      runhistory.add(
          config=config1,
          cost=10,
          time=20,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
          budget=2,
      )
  
      # Why should this not happen?
      # with pytest.raises(ValueError, "This should not happen!"):
      #    runhistory.add(
      #        config=config1,
      #        cost=10,
      #        time=20,
      #        status=StatusType.SUCCESS,
      #        instance=2,
      #        seed=2,
      #        budget=1,
      #    )
  
      runhistory.add(
          config=config2,
          cost=10,
          time=20,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
          budget=1,
      )
  
      ist = runhistory.get_trials(
          config=config1, highest_observed_budget_only=True
      )
  
      # assert len(ist) == 2
      assert len(ist) == 1
  
      assert ist[0].instance == 1
      # assert ist[1].instance == 2
      assert ist[0].budget == 2
  
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 7 for calling a global function with example usage: test_get_config_runs(runhistory, config1, config2) without return types