code: def test_hyperparameters():
      hp = hp_module.HyperParameters()
      assert hp.values == {}
      assert hp.space == []
      hp.Choice("choice", [1, 2, 3], default=2)
      assert hp.values == {"choice": 2}
      assert len(hp.space) == 1
      assert hp.space[0].name == "choice"
      hp.values["choice"] = 3
      assert hp.get("choice") == 3
      hp = hp.copy()
      assert hp.values == {"choice": 3}
      assert len(hp.space) == 1
      assert hp.space[0].name == "choice"
      with pytest.raises(KeyError, match="does not exist"):
          hp.get("wrong")
  
imports: import pytest
  from keras_tuner import protos
  from keras_tuner.backend import keras
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 1 for calling a global function with example usage: test_hyperparameters() without return types