code: def test_list_indexing():
      def fun(x):
          return sum([x[i] for i in range(len(x))])
  
      assert_linear_time(
          lambda N: grad(fun)([0.0 for i in range(50 * 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 5 for calling a global function with example usage: test_list_indexing() and returns: sum