code: def fun_close(fun1, fun2, zero=None, tol=1e-5, samples=10):
      X = np.linspace(-np.pi, np.pi, samples)
      if zero is not None:
          X = qml.math.convert_like(X, zero)
  
      for x in X:
          if not np.isclose(fun1(x), fun2(x), atol=tol, rtol=0):
              return False
      return True
  
imports: from inspect import signature
  from itertools import chain
  from functools import reduce
  import pytest
  import numpy
  import pennylane
  from pennylane import numpy
  from pennylane.fourier.reconstruct import _reconstruct_equ, _reconstruct_gen, _prepare_jobs, reconstruct
  from pennylane.fourier.utils import join_spectra
label_desc: Use image node_id 3 for calling a global function with example usage: fun_close(fun1, fun2, zero, tol, samples) and returns: True, False