code: def setUp(self) -> None:
      self.param1 = ChoiceParameter(
          name="x",
          parameter_type=ParameterType.STRING,
          values=["foo", "bar", "baz"],
      )
      self.param1_repr = (
          "ChoiceParameter(name='x', parameter_type=STRING, "
          "values=['foo', 'bar', 'baz'], is_ordered=False, sort_values=False)"
      )
      self.param2 = ChoiceParameter(
          name="x",
          parameter_type=ParameterType.STRING,
          values=["foo", "bar", "baz"],
          is_ordered=True,
          is_task=True,
          target_value="baz",
      )
      self.param2_repr = (
          "ChoiceParameter(name='x', parameter_type=STRING, "
          "values=['foo', 'bar', 'baz'], is_ordered=False, is_task=True, "
          "sort_values=False, target_value='baz')"
      )
      self.param3 = ChoiceParameter(
          name="x",
          parameter_type=ParameterType.STRING,
          values=["foo", "bar"],
          is_fidelity=True,
          target_value="bar",
      )
      self.param3_repr = (
          "ChoiceParameter(name='x', parameter_type=STRING, "
          "values=['foo', 'bar'], is_fidelity=True, is_ordered=False, "
          "sort_values=False, target_value='bar')"
      )
      self.param4 = ChoiceParameter(
          name="x",
          parameter_type=ParameterType.INT,
          values=[1, 2],
      )
      self.param4_repr = (
          "ChoiceParameter(name='x', parameter_type=INT, "
          "values=[1, 2], is_ordered=True, sort_values=True)"
      )
  
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 1 for calling the ChoiceParameterTest obj's underlying member method code with example usage: obj.setUp() without return types