code: def allclose(a, b, rtol=1.0e-5, atol=1.0e-8):
      try:
          iter(a)
      except TypeError:
          a = [a]
      try:
          iter(b)
      except TypeError:
          b = [b]
      for x, y in zip(a, b):
          if x == y:
              continue
          if abs(x - y) > (atol + rtol * abs(y)):
              return False
      return True
  
file_path: mpi4py/test/test_pack.py
imports: from mpi4py import MPI
  import mpiunittest
  import arrayimpl
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: allclose(a, b, rtol, atol) and returns: True, False