code: def newton(f, x0):
      # wrap scipy.optimize.newton with our automatic derivatives
      return scipy.optimize.newton(
          f, x0, fprime=grad(f), fprime2=grad(grad(f))
      )
  
file_path: autograd/examples/negative_binomial_maxlike.py
imports: from __future__ import division, print_function
  import autograd.numpy
  import autograd.numpy.random
  from autograd.scipy.special import gammaln
  from autograd import grad
  import scipy.optimize
label_desc: Use image node_id 1 for calling a global function with example usage: newton(f, x0) and returns: scipy