code: def _all_close_to_zero(dy):
      """
      Check if all entries of dy are close to 0. dy can also be a nested tuple
      structure of tensors, in which case this returns True iff all tensors are
      close to 0
      """
      if not isinstance(dy, (list, tuple)):
          return qml.math.allclose(dy, 0)
  
      # call this method recursively
      return all(_all_close_to_zero(dy_) for dy_ in dy)
  
file_path: pennylane/pennylane/gradients/vjp.py
imports: import numpy
  import autograd
  import pennylane
label_desc: Use image node_id 2 for calling a global function with example usage: _all_close_to_zero(dy) and returns: all, qml