code: def mean(X):
      """statistical mean for each variable in a segmented time series"""
      return np.mean(X, axis=1)
  
imports: import numpy
  from scipy import stats
label_desc: Use image node_id 5 for calling a global function with example usage: mean(X) and returns: np