code: def hessian(fun, func_out_ndim=None):
      """Wrap autograd hessian function.
  
      For consistency with the other backend, we convert this to a tensor
      of shape (dim, dim).
  
      Parameters
      ----------
      func : callable
          Function whose hessian values
          will be computed.
      func_out_ndim : int
          Unused. Here for API consistency.
  
      Returns
      -------
      func_with_hessian : callable
          Function that returns func's hessian
          values at its inputs args.
      """
  
      def _hess(x):
          return _autograd.hessian(fun)(x)
  
      return _hess
  
file_path: geomstats/geomstats/_backend/autograd/autodiff.py
imports: import autograd
  import autograd.numpy
  from autograd import jacobian
label_desc: Use image node_id 8 for calling a global function with example usage: hessian(fun, func_out_ndim) and returns: _hess, _autograd