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