code: def test_array_indexing():
      def fun(x):
          return sum([x[i] for i in range(len(x))])
  
      assert_linear_time(lambda N: grad(fun)(np.zeros(200 * N)))
  
file_path: autograd/tests/_test_complexity.py
imports: import time
  import warnings
  from autograd import grad, deriv
  import autograd.numpy
  from autograd.builtins import list
label_desc: Use image node_id 4 for calling a global function with example usage: test_array_indexing() and returns: sum