code: def intensity(pool):
      # this describes if a song is intense or not: from 0 to 1
      tempotap_bpm_value = pool.value("rhythm.bpm.value")
      rhythm_onset_rate_value = pool.value("rhythm.onset_rate.value")
      rhythm_beats_loudness_mean = pool.value(
          "rhythm.beats_loudness.mean"
      )
      rhythm_beats_loudness_bass_mean = pool.value(
          "rhythm.beats_loudness_bass.mean"
      )
  
      intensity = 0
  
      # this algorithm is based on the common sense
      # the thresholds were found from essentia_0.4.0:2885
      if tempotap_bpm_value < 100.0:
          intensity += 1
      else:
          if tempotap_bpm_value < 120.0:
              intensity += 2
          else:
              intensity += 3
  
      if rhythm_onset_rate_value < 3.0:
          intensity += 1
      else:
          if rhythm_onset_rate_value < 5.0:
              intensity += 2
          else:
              intensity += 3
  
      if rhythm_beats_loudness_mean < 0.1:
          intensity += 1
      else:
          if rhythm_beats_loudness_mean < 0.2:
              intensity += 2
          else:
              intensity += 3
  
      if rhythm_beats_loudness_bass_mean < 0.2:
          intensity += 1
      else:
          if rhythm_beats_loudness_bass_mean < 0.4:
              intensity += 2
          else:
              intensity += 3
  
      intensity /= 12.0
  
      pool.add(namespace + "." + "intensity", intensity)
  
imports: import essentia
  from essentia import INFO
label_desc: Use image node_id 3 for calling a global function with example usage: intensity(pool) without return types