code: def test_sampling_zero_length_intervals():
      f = hp_module.Float("f", 2, 2)
      rand_sample = f.random_sample()
      assert rand_sample == 2
  
      val = 2
      prob = f.value_to_prob(val)
      assert prob == 0.5
  
file_path: keras-tuner/keras_tuner/engine/hyperparameters/hp_types/float_hp_test.py
imports: import numpy
  from keras_tuner import protos
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 5 for calling a global function with example usage: test_sampling_zero_length_intervals() without return types