input: Write a python function to optimize a quadratic function using scipy.optimize.minimize.
  assert optimize_quadratic([-4, 4])['fun'] == -3.999999999999997
  assert np.allclose(optimize_quadratic([-4, 4])['x'], [-4.])
output: import numpy as np
  from scipy.optimize import minimize
  
  def optimize_quadratic(initial_guess):
      def quadratic_function(x):
          return x**2 + 2*x - 4
      
      result = minimize(quadratic_function, initial_guess)
      return result