class_docstr: Tests that the spectrum is returned as expected.
docstr: Test the spectrum for some simple standard circuits.
docstr_tok: ["Test","the","spectrum","for","some","simple","standard","circuits","."]
code: def test_various_circuits(self, circuit, args, expected):
      """Test the spectrum for some simple standard circuits."""
      dev = qml.device("default.qubit", wires=2)
      qnode = qml.QNode(circuit, dev)
      spec = qnode_spectrum(qnode)(*args)
      assert qnode.interface == "auto"
      assert spec.keys() == expected.keys()
      for outer_key in spec:
          assert spec[outer_key].keys() == expected[outer_key].keys()
          for key in spec[outer_key]:
              assert np.allclose(
                  spec[outer_key][key], expected[outer_key][key]
              )
  
imports: from collections import OrderedDict
  import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.fourier.qnode_spectrum import _process_ids, qnode_spectrum
  from pennylane.measurements import SampleMP, StateMP, VarianceMP
label_desc: Use image node_id 1 for calling the TestCircuits obj's underlying member method code with example usage: obj.test_various_circuits(circuit, args, expected) without return types