code: def unary_ufunc_check(fun, lims=[-2, 2], test_complex=True, **kwargs):
      scalar = transform(lims, 0.4)
      vector = transform(lims, npr.rand(2))
      mat = transform(lims, npr.rand(3, 2))
      mat2 = transform(lims, npr.rand(1, 2))
      check = combo_check(fun, (0,), **kwargs)
      check([scalar, vector, mat, mat2])
      if test_complex:
          comp = transform(lims, 0.4) + 0.1j * transform(lims, 0.3)
          matc = transform(lims, npr.rand(3, 2)) + 0.1j * npr.rand(3, 2)
          check([comp, matc])
  
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 2 for calling a global function with example usage: unary_ufunc_check(fun, lims, test_complex) without return types