code: def test_complex_mutating_outgrad_from_indexing():
      def fun(a):
          b = a + 1.0j
          c = b[0] + 1.5
          d = a + b
          e = d + c
          return np.sum(np.sin(np.real(e)))
  
      A = npr.randn(5)
      check_grads(fun)(A)
      d_fun = lambda x: grad(fun)(x)
      check_grads(d_fun)(A)
  
imports: from __future__ import absolute_import
  import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import check_grads
  from autograd import grad
  import warnings
  import pytest
label_desc: Use image node_id 9 for calling a global function with example usage: test_complex_mutating_outgrad_from_indexing() and returns: np