code: def test_set_real_value():
      """Test that a float option can have its value set"""
      config = Configuration()
      config.add_option("test", option_type=float)
  
      with pytest.raises(ConfigurationError) as exc:
          config.test
  
      config.test = 1
      assert config.test == 1.0
      config.test = "1"
      assert config.test == 1.0
      with pytest.raises(TypeError) as exc:
          config.test = "voici_voila"
      assert (
          "<class 'float'> cannot be set to voici_voila with type <class 'str'>"
          in str(exc.value)
      )
  
imports: import argparse
  import logging
  import os
  import pytest
  import yaml
  from orion.core.io.config import Configuration, ConfigurationError
label_desc: Use image node_id 11 for calling a global function with example usage: test_set_real_value() without return types