code: def test_repeat_rs():
      parameters = [
          sherpa.Continuous("a", [0, 1]),
          sherpa.Choice("b", ["x", "y", "z"]),
      ]
      rs = sherpa.algorithms.RandomSearch(max_num_trials=10)
      rs = sherpa.algorithms.Repeat(algorithm=rs, num_times=10)
      config_repeat = {}
  
      for i in range(10):
          config = rs.get_suggestion(parameters=parameters)
          assert config != config_repeat
          for j in range(9):
              config_repeat = rs.get_suggestion(parameters=parameters)
              assert config == config_repeat
  
      assert (
          rs.get_suggestion(parameters=parameters)
          == sherpa.AlgorithmState.DONE
      )
  
imports: from __future__ import absolute_import
  import collections
  import pandas
  import numpy
  import sherpa
  import logging
  import itertools
  import pytest
  from testing_utils import *
label_desc: Use image node_id 11 for calling a global function with example usage: test_repeat_rs() without return types