class_docstr: Tests the subroutine that determines the 1D reconstruction
  jobs to be carried out for a call to ``reconstruct`` .
docstr: Test that an error is raised if both, spectra
  and nums_frequency are missing.
docstr_tok: ["Test","that","an","error","is","raised","if","both",",","spectra","and","nums_frequency","are","missing","."]
code: def test_missing_spectra_and_nums_frequency(self, ids, shifts, tol):
      """Test that an error is raised if both, spectra
      and nums_frequency are missing."""
      with pytest.raises(
          ValueError, match="Either nums_frequency or spectra"
      ):
          _prepare_jobs(
              ids,
              nums_frequency=None,
              spectra=None,
              shifts=shifts,
              atol=tol,
          )
  
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 the TestPrepareJobs obj's underlying member method code with example usage: obj.test_missing_spectra_and_nums_frequency(ids, shifts, tol) without return types