code: def test_SingleValue(self) -> None:
      with self.assertRaises(UserInputError):
          ChoiceParameter(
              name="x",
              parameter_type=ParameterType.STRING,
              values=["foo"],
          )
      with self.assertRaises(UserInputError):
          self.param1.set_values(["foo"])
  
imports: from ax.core.parameter import _get_parameter_type, ChoiceParameter, EPS, FixedParameter, ParameterType, RangeParameter
  from ax.exceptions.core import UserInputError
  from ax.utils.common.testutils import TestCase
  from ax.utils.common.typeutils import not_none
label_desc: Use image node_id 8 for calling the ChoiceParameterTest obj's underlying member method code with example usage: obj.test_SingleValue() without return types