code: def __init__(self, sample_array, output_file, gst_audio_encoder):
      if not isinstance(sample_array, SampleArray):
          raise ValueError("array must be a SampleArray subclass")
      self.sample_array = sample_array
      self.samplerate = self.sample_array.samplerate
      self.output_file = output_file
      if not isinstance(gst_audio_encoder, list):
          gst_audio_encoder = [gst_audio_encoder]
      self.gst_audio_encoder = gst_audio_encoder
  
imports: from __future__ import division
  import gi
  from gi.repository import GLib, Gst
  import numpy
  import scipy.signal.waveforms
  import os.path
  import ffmpeg
label_desc: Use image node_id 1 to create a new gst_BuildSample object from inherited base classes: object with example: obj = gst_BuildSample(sample_array, output_file, gst_audio_encoder)