input: from typing import Tuple
  
  def optimize_objective(x0: Tuple[float], func, method: str) -> Tuple[float]:
      """
      Optimize the given objective function using scipy's minimize function.
      
      >>> def obj_func(x):
      ...     return x[0] ** 2 + x[1] ** 2
      >>> optimize_objective((0.0, 0.0), obj_func, 'nelder-mead')
      array([0., 0.])
      """
      from scipy.optimize import minimize
      res = minimize(func, x0, method=method)
      return res.x
output:     from scipy.optimize import minimize
      res = minimize(func, x0, method=method)
      return res.x