code: def test_hess_vector_prod():
      npr.seed(1)
      randv = npr.randn(10)
  
      def fun(x):
          return np.sin(np.dot(x, randv))
  
      df = grad(fun)
  
      def vector_product(x, v):
          return np.sin(np.dot(v, df(x)))
  
      ddf = grad(vector_product)
      A = npr.randn(10)
      B = npr.randn(10)
      check_grads(fun)(A)
      check_grads(vector_product)(A, B)
  
imports: from __future__ import absolute_import
  import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import check_grads
  from autograd import grad
  import warnings
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_hess_vector_prod() and returns: np, np