code: def test_to_proto_unrecognized_hp_type():
      hps = hp_module.HyperParameters()
      hps._space.append(None)
      hps.Fixed("d", "3")
  
      with pytest.raises(ValueError, match="Unrecognized HP"):
          hp_module.HyperParameters.from_proto(hps.to_proto())
  
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 6 for calling a global function with example usage: test_to_proto_unrecognized_hp_type() without return types