code: def test_fixed():
      fixed = hp_module.Fixed("fixed", "value")
      fixed = hp_module.Fixed.from_config(fixed.get_config())
      assert fixed.default == "value"
      assert fixed.random_sample() == "value"
  
      fixed = hp_module.Fixed("fixed", True)
      assert fixed.default is True
      assert fixed.random_sample() is True
  
      fixed = hp_module.Fixed("fixed", False)
      fixed = hp_module.Fixed.from_config(fixed.get_config())
      assert fixed.default is False
      assert fixed.random_sample() is False
  
      fixed = hp_module.Fixed("fixed", 1)
      assert fixed.value == 1
      assert fixed.random_sample() == 1
  
      fixed = hp_module.Fixed("fixed", 8.2)
      assert fixed.value == 8.2
      assert fixed.random_sample() == 8.2
      assert fixed.value_to_prob(fixed.value) == 0.5
  
      with pytest.raises(ValueError, match="value must be an"):
          hp_module.Fixed("fixed", None)
  
imports: import pytest
  from keras_tuner.engine import hyperparameters
label_desc: Use image node_id 1 for calling a global function with example usage: test_fixed() without return types