class_docstr: Tests for the finite difference gradient transform
class_docstr_tok: ["Tests","for","the","finite","difference","gradient","transform"]
docstr: Test that the Jacobian is correctly returned for a tape
  with ragged output
code: def test_ragged_output(self, approx_order, strategy, validate):
      """Test that the Jacobian is correctly returned for a tape
      with ragged output"""
      dev = qml.device("default.qubit", wires=3)
      params = [1.0, 1.0, 1.0]
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.RX(params[0], wires=[0])
          qml.RY(params[1], wires=[1])
          qml.RZ(params[2], wires=[2])
          qml.CNOT(wires=[0, 1])
          qml.probs(wires=0)
          qml.probs(wires=[1, 2])
  
      tape = qml.tape.QuantumScript.from_queue(q)
      tapes, fn = finite_diff(
          tape,
          approx_order=approx_order,
          strategy=strategy,
          validate_params=validate,
      )
      res = fn(dev.execute(tapes))
  
      assert isinstance(res, tuple)
  
      assert len(res) == 2
  
      assert len(res[0]) == 3
      assert res[0][0].shape == (2,)
      assert res[0][1].shape == (2,)
      assert res[0][2].shape == (2,)
  
      assert len(res[1]) == 3
      assert res[1][0].shape == (4,)
      assert res[1][1].shape == (4,)
      assert res[1][2].shape == (4,)
  
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 1 for calling the TestFiniteDiffIntegration obj's underlying member method code with example usage: obj.test_ragged_output(approx_order, strategy, validate) without return types