code: def cumulative_integral(fx, x):
      """
      Return the cumulative integral of arrays, initial value is 0.
  
      Parameters
      ----------
      fx: (n,d) numpy array, what you want to integral of
      x: (n,) numpy array, location to integrate over.
      """
      return cumtrapz(fx.T, x, initial=0).T
  
imports: import numpy
  import pandas
  from scipy import stats
  from scipy.optimize import newton
  from scipy.integrate import cumtrapz
label_desc: Use image node_id 15 for calling a global function with example usage: cumulative_integral(fx, x) and returns: cumtrapz