code: def beatExtractionWrapper(wav_file, plot):
      if not os.path.isfile(wav_file):
          raise Exception("Input audio file not found!")
      [fs, x] = audioBasicIO.read_audio_file(wav_file)
      F, _ = sF.feature_extraction(x, fs, 0.050 * fs, 0.050 * fs)
      bpm, ratio = aF.beat_extraction(F, 0.050, plot)
      print("Beat: {0:d} bpm ".format(int(bpm)))
      print("Ratio: {0:.2f} ".format(ratio))
  
imports: from __future__ import print_function
  import argparse
  import os
  import numpy
  import glob
  import matplotlib.pyplot
  import ShortTermFeatures
  import MidTermFeatures
  import audioTrainTest
  import audioSegmentation
  import audioVisualization
  import audioBasicIO
  import scipy.io.wavfile
  import matplotlib.patches
label_desc: Use image node_id 4 for calling a global function with example usage: beatExtractionWrapper(wav_file, plot) without return types