docs: def zero_pad(ts, n_zeros):
      """
      Pad a nitime.TimeSeries class instance with n_zeros before and after the
      data
  
      Parameters
      ----------
      ts : a nitime.TimeSeries class instance
      
      """
      
      zeros_shape = ts.shape[:-1] + (n_zeros,)
      zzs = np.zeros(zeros_shape)
      # Concatenate along the time-dimension:
      new_data = np.concatenate((zzs, ts.data, zzs), axis=-1)
  
      return nts.TimeSeries(new_data, sampling_rate=ts.sampling_rate)