code: def test_int():
      rg = hp_module.Int(
          "rg", min_value=5, max_value=9, step=1, default=6
      )
      rg = hp_module.Int.from_config(rg.get_config())
      assert rg.default == 6
      assert 5 <= rg.random_sample() <= 9
      assert isinstance(rg.random_sample(), int)
      assert rg.random_sample(123) == rg.random_sample(123)
      assert abs(rg.value_to_prob(6) - 0.3) < 1e-4
      # No default
      rg = hp_module.Int("rg", min_value=5, max_value=9, step=1)
      assert rg.default == 5
  
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 2 for calling a global function with example usage: test_int() without return types