code: def get_scipy_minimizer(**kwargs):
      
      def minimizer(objective, n_params):
          params = [random.random() for _ in range(n_params)]
          result = scipy_minimizer(objective, params, **kwargs)
          return result.x
      return minimizer
docs: Get minimizer which uses `scipy.optimize.minimize`