input: Write a function to create an AI-powered Python script that optimizes any given code. The function should take a function and its parameters as input and return the optimized parameters. If the given code is an empty string then return a message indicating that no code is provided.
  
  def optimize_code(fn, params):
      if fn == "" or params == "":
          return "No code provided"
      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
  
  from dataclasses import dataclass
  
  @dataclass
  class Params:
      a: int
      b: int
      c: int
  
  def get_result(params: Params) -> int:
      return params.a + params.b + params.c
  
  assert optimize_code("", "") == "No code provided"
  assert optimize_code(get_result, Params(1, 2, 3)) == {'a': 11, 'b': 12, 'c': 13}
  assert optimize_code(lambda params: params.a * params.b * params.c, Params(2, 3, 4)) == {'a': 12, 'b': 13, 'c': 14}
  assert optimize_code(lambda params: params.a / params.b / params.c, Params(10, 5, 2)) == {'a': 20, 'b': 15, 'c': 12}
  assert optimize_code(get_result, Params(-1, -2, -3)) == {'a': 9, 'b': 8, 'c': 7}
output: def optimize_code(fn, params):
      if fn == "" or params == "":
          return "No code provided"
      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