code: def stat_check(fun, test_complex=True, **kwargs):
      # Tests functions that compute statistics, like sum, mean, etc
      x = 3.5
      A = npr.randn()
      B = npr.randn(3)
      C = npr.randn(2, 3)
      D = npr.randn(1, 3)
      check = combo_check(fun, (0,), **kwargs)
      check([x, A])
      check([B, C, D], axis=[None, 0], keepdims=[True, False])
      check([C, D], axis=[None, 0, 1], keepdims=[True, False])
      if test_complex:
          c = npr.randn() + 0.1j * npr.randn()
          E = npr.randn(2, 3) + 0.1j * npr.randn(2, 3)
          check([x, c, A])
          check([B, C, D, E], axis=[None, 0], keepdims=[True, False])
  
file_path: autograd/tests/numpy_utils.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from builtins import range
  import itertools
  import autograd.numpy.random
  from autograd import grad
  from autograd.test_util import combo_check
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: stat_check(fun, test_complex) without return types