code: def test_jacobian_higher_order():
      fun = lambda x: np.sin(np.outer(x, x)) + np.cos(np.dot(x, x))
  
      assert jacobian(fun)(npr.randn(2)).shape == (2, 2, 2)
      assert jacobian(jacobian(fun))(npr.randn(2)).shape == (2, 2, 2, 2)
      # assert jacobian(jacobian(jacobian(fun)))(npr.randn(2)).shape == (2,2,2,2,2)
  
      check_grads(lambda x: np.sum(np.sin(jacobian(fun)(x))))(
          npr.randn(2)
      )
      check_grads(lambda x: np.sum(np.sin(jacobian(jacobian(fun))(x))))(
          npr.randn(2)
      )
  
file_path: autograd/tests/test_jacobian.py
imports: from __future__ import division
  import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import check_grads
  from autograd import grad, jacobian
label_desc: Use image node_id 4 for calling a global function with example usage: test_jacobian_higher_order() without return types