code: def test_items(runhistory, config1):
      """Test that items goes in correct insertion order and returns key values
      as expected.
      """
      params = [
          {"instance": "a", "cost": 1.0},
          {"instance": "b", "cost": 2.0},
          {"instance": "c", "cost": 3.0},
          {"instance": "d", "cost": 4.0},
      ]
  
      for p in params:
          add_item(runhistory, config1, **p)
  
      for (k, v), expected in zip(runhistory.items(), params):
          assert k.instance == expected["instance"]
          assert v.cost == expected["cost"]
  
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 20 for calling a global function with example usage: test_items(runhistory, config1) without return types