code: def test_ordered_choice() -> None:
      choice = par.TransitionChoice(
          [0, 1, 2, 3], transitions=[-1000000, 10]
      )
      assert len(choice) == 4
      assert choice.value == 2
      choice.value = 1
      assert choice.value == 1
      choice.mutate()
      assert choice.value in [0, 2]
      assert choice.get_standardized_data(reference=choice).size
      choice.set_standardized_data(np.array([12.0]))
  
imports: import pickle
  import typing
  import pytest
  import numpy
  from nevergrad.common import errors
  from .None import parameter
label_desc: Use image node_id 20 for calling a global function with example usage: test_ordered_choice() without return types