input: from typing import Callable, List, Dict
  from dataclasses import dataclass
  
  @dataclass
  class Params:
      a: int
      b: int
      c: int
  
  def get_result(params: Params) -> int:
      """Returns the sum of the three given numbers"""
      return params.a + params.b + params.c
  
  def optimize(fn: Callable[[Params], int], params: Params) -> Dict[str, int]:
      """Optimizes the given function by iterating over a range of values for each parameter,
      returning the parameters that yield the highest result from the function.
      >>> optimize(get_result, Params(1, 2, 3))
      {'a': 9, 'b': 10, 'c': 3}
      """
      best_score = 0
      best_params = None
      for a in range(params.a - 10, params.a + 10):
          for b in range(params.b - 10, params.b + 10):
              for c in range(params.c - 10, params.c + 10):
                  score = fn(Params(a, b, c))
                  if score > best_score:
                      best_score = score
                      best_params = {
                          'a': a,
                          'b': b,
                          'c': c
                      }
      return best_params
output:     best_score = 0
      best_params = None
      for a in range(params.a - 10, params.a + 10):
          for b in range(params.b - 10, params.b + 10):
              for c in range(params.c - 10, params.c + 10):
                  score = fn(Params(a, b, c))
                  if score > best_score:
                      best_score = score
                      best_params = {
                          'a': a,
                          'b': b,
                          'c': c
                      }
      return best_params