code: def almost_eq(arr1, arr2, thresh=1E-11, ret_error=False):
      
      error = np.abs(arr1 - arr2)
      passed = error < thresh
      if ret_error:
          return passed, error
      return passed
docs: checks if floating point number are equal to a threshold