input: 
  def optimize_code(fn, params):
      """Takes a function and a set of parameters, then optimizes the parameters
      within a certain range to maximize the function's output.
      
      >>> optimize_code(lambda params: params.a + params.b + params.c, Params(a=1, b=2, c=3))
      {'a': 11, 'b': 2, 'c': 3}
      >>> optimize_code(lambda params: params.a * params.b * params.c, Params(a=1, b=2, c=3))
      {'a': 11, '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