code: def allclose(x, y, rtol=1.0000000000000001e-05, atol=1e-08):
      """Returns True if x and y are sufficiently close, elementwise.
  
      Parameters
      ----------
      rtol : float
          The relative error tolerance.
      atol : float
          The absolute error tolerance.
  
      """
      # assume finite weights, see numpy.allclose() for reference
      return all(
          math.isclose(xi, yi, rel_tol=rtol, abs_tol=atol)
          for xi, yi in zip(x, y)
      )
  
file_path: networkx/networkx/algorithms/isomorphism/matchhelpers.py
imports: import math
  import types
  from itertools import permutations
label_desc: Use image node_id 2 for calling a global function with example usage: allclose(x, y, rtol, atol) and returns: all