code: def _cnn_onset_processor_pad(data):
      """Pad the data by repeating the first and last frame 7 times."""
      pad_start = np.repeat(data[:1], 7, axis=0)
      pad_stop = np.repeat(data[-1:], 7, axis=0)
      return np.concatenate((pad_start, data, pad_stop))
  
imports: from __future__ import absolute_import, division, print_function
  import numpy
  from scipy.ndimage import maximum_filter, minimum_filter, uniform_filter
  from ..audio.signal import smooth
  from ..processors import BufferProcessor, OnlineProcessor, ParallelProcessor, SequentialProcessor
  from ..utils import combine_events
label_desc: Use image node_id 16 for calling a global function with example usage: _cnn_onset_processor_pad(data) and returns: np