def scores(
    mean_utility_arr,
    statistic_fns):
  """Evaluate the statisctics of mean utility of a search space and a budget.

  Args:
    mean_utility_arr: (x_drawn_num,) shaped array of utilities at x-locations
      averaged over their y-values. This array is the output of score function.
    statistic_fns: a list of statistics to be evaluated across the mean_utlity
      including generic functions (e.g., jnp.mean & jnp.median) and user-defined
      functions.

  Returns:
    result: a dict containing statistics of the mean_utility, i.e., the scores.

  """
  results = {}
  for statistic_fn in statistic_fns:
    results[statistic_fn.__name__] = statistic_fn(mean_utility_arr)
  return results