code: def test_falseyness():
      fun = lambda x: np.real(x**2 if np.iscomplex(x) else np.sum(x))
      check_grads(fun)(2.0)
      check_grads(fun)(2.0 + 1j)
  
file_path: autograd/tests/test_logic.py
imports: from __future__ import division
  from contextlib import contextmanager
  import pytest
  import warnings
  import autograd.numpy
  from autograd import grad, deriv
  from autograd.extend import primitive
  from autograd.test_util import check_grads
  from autograd.core import primitive_vjps
label_desc: Use image node_id 5 for calling a global function with example usage: test_falseyness() without return types