code: def test_prob_one_choice():
      hp = hp_module.Choice("a", [0, 1, 2])
      # Check that boundaries are valid.
      value = hp.prob_to_value(1)
      assert value == 2
  
      value = hp.prob_to_value(0)
      assert value == 0
  
file_path: keras-tuner/keras_tuner/engine/hyperparameters/hp_types/choice_hp_test.py
imports: import numpy
  import pytest
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 10 for calling a global function with example usage: test_prob_one_choice() without return types