code: def _tcn_beat_processor_pad(data):
      """Pad the data by repeating the first and last frame 2 times."""
      pad_start = np.repeat(data[:1], 2, axis=0)
      pad_stop = np.repeat(data[-1:], 2, axis=0)
      return np.concatenate((pad_start, data, pad_stop))
  
imports: from __future__ import absolute_import, division, print_function
  import sys
  import numpy
  from ..audio.signal import signal_frame, smooth
  from ..ml.nn import average_predictions
  from ..processors import OnlineProcessor, ParallelProcessor, Processor, SequentialProcessor
label_desc: Use image node_id 1 for calling a global function with example usage: _tcn_beat_processor_pad(data) and returns: np