docstr: Check that parameter frequencies of parametrized operations are defined correctly.
code: def test_parameter_frequencies_match_generator(self, op, tol):
      """Check that parameter frequencies of parametrized operations are defined correctly."""
      if not qml.operation.has_gen(op):
          pytest.skip(
              f"Operation {op.name} does not have a generator defined to test against."
          )
  
      gen = op.generator()
      mat = gen.matrix()
  
      gen_eigvals = np.round(np.linalg.eigvalsh(mat), 8)
      freqs_from_gen = qml.gradients.eigvals_to_frequencies(
          tuple(gen_eigvals)
      )
  
      freqs = op.parameter_frequencies
      assert np.allclose(freqs, freqs_from_gen, atol=tol)
  
imports: import copy
  from functools import reduce
  import pytest
  import numpy
  from gate_data import TSHIFT, TCLOCK
  from pennylane import numpy
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestParameterFrequencies obj's underlying member method code with example usage: obj.test_parameter_frequencies_match_generator(op, tol) without return types