class_docstr: Tests for the eigvals_to_frequencies function
class_docstr_tok: ["Tests","for","the","eigvals_to_frequencies","function"]
docstr: Test the case of two eigenvalues
code: def test_two_eigvals(self):
      """Test the case of two eigenvalues"""
      res = eigvals_to_frequencies((-0.5, 0.5))
      expected = (1,)
      assert res == expected
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.gradients.general_shift_rules import eigvals_to_frequencies, frequencies_to_period, generate_shift_rule, _get_shift_rule, generate_multi_shift_rule, generate_shifted_tapes, generate_multishifted_tapes, _iterate_shift_rule_with_multipliers
label_desc: Use image node_id 1 for calling the TestEigvalsToFrequencies obj's underlying member method code with example usage: obj.test_two_eigvals() without return types