code: def test_choice_types():
      values1 = ["a", "b", 0]
      with pytest.raises(TypeError, match="can contain only one"):
          hp_module.Choice("a", values1)
      values2 = [{"a": 1}, {"a": 2}]
      with pytest.raises(TypeError, match="can contain only `int`"):
          hp_module.Choice("a", values2)
  
file_path: keras-tuner/keras_tuner/engine/hyperparameters/hp_types/choice_hp_test.py
imports: import numpy
  import pytest
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 4 for calling a global function with example usage: test_choice_types() without return types