code: def cumulative_sum(p: np.ndarray) -> np.ndarray:
      # return np.insert(p, 0, 0).cumsum()
      return np.concatenate((np.zeros(1), p)).cumsum()
  
imports: from collections import defaultdict, namedtuple
  import warnings
  import numpy
  from numpy.linalg import norm
  import pandas
  from lifelines.exceptions import ConvergenceWarning
  from typing import *
label_desc: Use image node_id 3 for calling a global function with example usage: cumulative_sum(p) and returns: np