code: def test_grad_complex_output():
      def fun(x):
          return x * (1.0 + 0.2j)
  
      with pytest.raises(TypeError):
          grad(fun)(1.0)
  
file_path: autograd/tests/test_direct.py
imports: import numpy
  import autograd.numpy
  from autograd import grad, deriv, holomorphic_grad
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_grad_complex_output() and returns: unknown