class_docstr: Tests the one-dimensional reconstruction subroutine based on equidistantly
  shifted evaluations for equidistant frequencies.
docstr: Test that integer-frequency qnodes are reconstructed correctly.
docstr_tok: ["Test","that","integer-frequency","qnodes","are","reconstructed","correctly","."]
code: def test_with_qnode(self, scales, mocker):
      """Test that integer-frequency qnodes are reconstructed correctly."""
      circuit = get_RX_circuit(scales)
      Fun = Lambda(circuit)
      spy = mocker.spy(Fun, "fun")
      num_frequency = sum(scales)
      rec = _reconstruct_equ(Fun, num_frequency)
      assert spy.call_count == num_frequency * 2 + 1
      assert fun_close(circuit, rec)
  
      # Repeat, using precomputed f0
      f0 = circuit(0.0)
      Fun = Lambda(circuit)
      spy = mocker.spy(Fun, "fun")
      rec = _reconstruct_equ(Fun, num_frequency, f0=f0)
      assert spy.call_count == num_frequency * 2
      assert fun_close(circuit, rec)
  
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 8 for calling the TestReconstructEqu obj's underlying member method code with example usage: obj.test_with_qnode(scales, mocker) without return types