code: def max_energy_index(beat):
      energy = []
  
      for sample in beat:
          energy.append(sample * sample)
  
      return energy.index(max(energy))
  
file_path: essentia/src/python/essentia/extractor/beats.py
imports: import essentia
  from essentia import INFO
  import sys
  import math
  from math import *
  from essentia.progress import Progress
label_desc: Use image node_id 1 for calling a global function with example usage: max_energy_index(beat) and returns: energy