code: def test_contains(runhistory, config1):
      """Test that keys added are contained `in` and not if not added"""
      k = add_item(runhistory, config1)
      assert k in runhistory
  
      new_rh = RunHistory()
      assert k not in new_rh
  
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 16 for calling a global function with example usage: test_contains(runhistory, config1) without return types