code: def test_int_proto():
      hp = hp_module.Int("a", 1, 100, sampling="log")
      proto = hp.to_proto()
      assert proto.name == "a"
      assert proto.min_value == 1
      assert proto.max_value == 100
      assert proto.sampling == protos.get_proto().Sampling.LOG
      # Proto stores the implicit default.
      assert proto.default == 1
      assert proto.step == 0
  
      new_hp = hp_module.Int.from_proto(proto)
      assert new_hp._default == 1
      # Pop the implicit default for comparison purposes.
      new_hp._default = None
      assert new_hp.get_config() == hp.get_config()
  
file_path: keras-tuner/keras_tuner/engine/hyperparameters/hp_types/int_hp_test.py
imports: import pytest
  from keras_tuner import protos
  from keras_tuner.engine import hyperparameters
  from keras_tuner.engine.hyperparameters import hp_types
label_desc: Use image node_id 5 for calling a global function with example usage: test_int_proto() without return types