code: def test_unimplemented_falseyness():
      @contextmanager
      def remove_grad_definitions(fun):
          vjpmaker = primitive_vjps.pop(fun, None)
          yield
          if vjpmaker:
              primitive_vjps[fun] = vjpmaker
  
      with remove_grad_definitions(np.iscomplex):
          fun = lambda x: np.real(
              x**2 if np.iscomplex(x) else np.sum(x)
          )
          check_grads(fun)(5.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 6 for calling a global function with example usage: test_unimplemented_falseyness() without return types