code: def assert_delta(test, delta):
      delta_condition = (delta.abs() < 0.00001).all()
      test.assertTrue(
          delta_condition,
          "The sum of attribution values {} for relu layer is not "
          "nearly equal to the difference between the endpoint for "
          "some samples".format(delta),
      )
  
file_path: captum/tests/helpers/basic.py
imports: import copy
  import random
  import unittest
  from typing import Callable
  import numpy
  import torch
  from captum.log import patch_methods
label_desc: Use image node_id 5 for calling a global function with example usage: assert_delta(test, delta) without return types