code: def cumsum_mult(array, dims):
      """Cumsum over all axes in dims."""
      dims = _coerce_to_list_or_tuple(dims)
      for dimind in dims:
          array = np.cumsum(array, axis=dimind)
      return array
  
imports: import collections
  from functools import partial
  import numpy
  from scipy.sparse.linalg import svds
  from sklearn.base import BaseEstimator, TransformerMixin
  from sktime.dists_kernels.base import BasePairwiseTransformerPanel
label_desc: Use image node_id 4 for calling a global function with example usage: cumsum_mult(array, dims) and returns: array