code: def test_MaxValuesValidation(self) -> None:
      ChoiceParameter(
          name="x",
          parameter_type=ParameterType.INT,
          values=list(range(999)),  # pyre-ignore
      )
      with self.assertRaisesRegex(
          UserInputError,
          "`ChoiceParameter` with more than 1000 values is not supported! Use a "
          "`RangeParameter` instead.",
      ):
          ChoiceParameter(
              name="x",
              parameter_type=ParameterType.INT,
              values=list(range(1001)),  # pyre-ignore
          )
  
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 11 for calling the ChoiceParameterTest obj's underlying member method code with example usage: obj.test_MaxValuesValidation() without return types