code: def fun(x):
      currterm = x
      ans = currterm
      for i in range(1000):
          print(i, end=" ")
          currterm = -currterm * x**2 / ((2 * i + 3) * (2 * i + 2))
          ans = ans + currterm
          if np.abs(currterm) < 0.2:
              break  # (Very generous tolerance!)
  
      return ans
  
file_path: autograd/examples/sinusoid.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from builtins import range, map
  import autograd.numpy
  import matplotlib.pyplot
  from autograd import grad
label_desc: Use image node_id 2 for calling a global function with example usage: fun(x) and returns: ans