code: def _accumulate(values):
      # Helper function because Python 2.7 doesn't have
      # itertools.accumulate
      value = 0
      accumulated = []
      for v in values:
          value += v
          accumulated.append(value)
      return accumulated
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  import operator
  import types
  import warnings
  from .None import numeric
  from .None import overrides
  from .numeric import array, asanyarray, newaxis
  from .multiarray import normalize_axis_index
label_desc: Use image node_id 17 for calling a global function with example usage: _accumulate(values) and returns: accumulated