code: def test_choice_repetitions() -> None:
      choice = par.Choice([0, 1, 2, 3], repetitions=2)
      choice.random_state.seed(12)
      assert len(choice) == 4
      assert choice.value == (0, 2)
      choice.value = (3, 1)
      assert choice.indices.value.tolist() == [3, 1]
      choice.mutate()
  
imports: import pickle
  import typing
  import pytest
  import numpy
  from nevergrad.common import errors
  from .None import parameter
label_desc: Use image node_id 23 for calling a global function with example usage: test_choice_repetitions() without return types