code: def test_get_configs_per_budget(
      runhistory, config1, config2, config3
  ):
      runhistory.add(
          config=config1,
          cost=10,
          time=10,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
          budget=1,
      )
  
      runhistory.add(
          config=config2,
          cost=20,
          time=20,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
          budget=1,
      )
  
      runhistory.add(
          config=config3,
          cost=30,
          time=30,
          status=StatusType.SUCCESS,
          instance=1,
          seed=1,
          budget=3,
      )
  
      assert runhistory.get_configs_per_budget([1]) == [
          config1,
          config2,
      ]
  
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 13 for calling a global function with example usage: test_get_configs_per_budget(runhistory, config1, config2, config3) without return types