code: def test_repeat_get_best_result():
      parameters = [sherpa.Choice("a", [1, 2, 3])]
      gs = sherpa.algorithms.GridSearch()
      gs = sherpa.algorithms.Repeat(algorithm=gs, num_times=3)
      study = sherpa.Study(
          parameters=parameters,
          algorithm=gs,
          lower_is_better=True,
          disable_dashboard=True,
      )
  
      objectives = [1.1, 1.2, 1.3, 2.1, 2.2, 2.3, 9.0, 0.1, 9.1]
  
      for obj, trial in zip(objectives, study):
          study.add_observation(trial, objective=obj)
          study.finalize(trial)
  
      assert study.get_best_result()["a"] == 1
  
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 14 for calling a global function with example usage: test_repeat_get_best_result() without return types