code: def cumsum_rev(array):
      """Reverse cumsum over both axes 0 and 1."""
      out = np.zeros_like(array)
      out[:-1, :-1] = np.cumsum(np.cumsum(array[:0:-1, :0:-1], 0), 1)[
          ::-1, ::-1
      ]
      return out
  
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 3 for calling a global function with example usage: cumsum_rev(array) and returns: out