code: def isAlmostEqual(a, b, precision):
      error = 0.0
      if b == 0.0:
          error = abs(a - b)
      else:
          error = abs((a - b) / b)
      if error <= precision:
          return True
      else:
          return False
  
file_path: essentia/test/src/pythontests/test_extractor.py
imports: import os
  import sys
  import essentia
  import yaml
  import numpy
  from essentia.extractor.extractor import compute
label_desc: Use image node_id 2 for calling a global function with example usage: isAlmostEqual(a, b, precision) and returns: True, False