code: def test_int_log_with_step():
      rg = hp_module.Int(
          "rg", min_value=2, max_value=32, step=2, sampling="log"
      )
      for _ in range(10):
          assert rg.random_sample() in [2, 4, 8, 16, 32]
      assert abs(rg.value_to_prob(4) - 0.3) < 1e-4
      assert rg.prob_to_value(0.3) == 4
  
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 3 for calling a global function with example usage: test_int_log_with_step() without return types