code: def debug_failed_all_close(
      val, ref, val_name, analyzer_name, rtol=rtol, atol=atol
  ):
      diff = np.absolute(val - ref)
      # Function evaluated by np.allclose, see "Notes":
      # https://numpy.org/doc/stable/reference/generated/numpy.allclose.html
      tol = atol + rtol * np.absolute(ref)
      idx = np.argwhere(diff > tol)
  
      print(
          f"{len(idx)}/{np.prod(val.shape)} "
          f'failed on reference "{val_name}" using {analyzer_name}'
          f"(atol={atol}, rtol={rtol})"
      )
  
file_path: innvestigate/tests/analyzer/test_reference_vgg16.py
imports: import os
  import h5py
  import numpy
  import pytest
  import tensorflow
  from tensorflow.keras.applications import VGG16
  from innvestigate.analyzer.deeptaylor import BoundedDeepTaylor, DeepTaylor
  from innvestigate.analyzer.gradient_based import Deconvnet, Gradient, GuidedBackprop, InputTimesGradient, IntegratedGradients, SmoothGrad
  from innvestigate.analyzer.relevance_based.relevance_analyzer import LRP, LRPZ, LRPAlpha1Beta0, LRPAlpha1Beta0IgnoreBias, LRPAlpha2Beta1, LRPAlpha2Beta1IgnoreBias, LRPEpsilon, LRPFlat, LRPSequentialPresetA, LRPSequentialPresetAFlat, LRPSequentialPresetB, LRPSequentialPresetBFlat, LRPWSquare, LRPZPlus, LRPZPlusFast
label_desc: Use image node_id 1 for calling a global function with example usage: debug_failed_all_close(val, ref, val_name, analyzer_name, rtol, atol) without return types