class_docstr: Tests for the finite difference gradient transform
class_docstr_tok: ["Tests","for","the","finite","difference","gradient","transform"]
docstr: Test that if first order finite differences is used, then
  the tape is executed only once using the current parameter
  values.
code: def test_y0(self):
      """Test that if first order finite differences is used, then
      the tape is executed only once using the current parameter
      values."""
      with qml.queuing.AnnotatedQueue() as q:
          qml.RX(0.543, wires=[0])
          qml.RY(-0.654, wires=[0])
          qml.expval(qml.PauliZ(0))
  
      tape = qml.tape.QuantumScript.from_queue(q)
      tapes, _ = finite_diff(tape, approx_order=1)
  
      # one tape per parameter, plus one global call
      assert len(tapes) == tape.num_params + 1
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.devices import DefaultQubitLegacy
  from pennylane.gradients import finite_diff, finite_diff_coeffs
  from pennylane.operation import AnyWires, Observable
label_desc: Use image node_id 12 for calling the TestFiniteDiff obj's underlying member method code with example usage: obj.test_y0() without return types