code: def cumsum(x):
      """
      Custom cumsum to avoid a numpy import.
      """
  
      def _reducer(a, x):
          if len(a) == 0:
              return [x]
          return a + [a[-1] + x]
  
      ret = reduce(_reducer, x, [])
      return ret
  
imports: import decimal
  import json
  import sys
  import re
  from functools import reduce
  from _plotly_utils.optional_imports import get_module
  from _plotly_utils.basevalidators import ImageUriValidator
label_desc: Use image node_id 1 for calling a global function with example usage: cumsum(x) and returns: ret, unknown, list