code: def test_singleton_array_output():
      fun = lambda x: np.sum(np.sin(x), keepdims=True)
      check_grads(fun)(npr.randn(3, 3))
      check_grads(lambda x: np.sum(grad(fun)(x)))(npr.randn(3, 3))
  
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 14 for calling a global function with example usage: test_singleton_array_output() without return types