class_docstr: Tests for adjoint_jacobian
class_docstr_tok: ["Tests","for","adjoint_jacobian"]
docstr: Test that adjoint_jacbonian works as expected when custom wire labels are used.
code: def test_custom_wire_labels(self, tol):
      """Test that adjoint_jacbonian works as expected when custom wire labels are used."""
      qs = QuantumScript(
          [qml.RX(0.123, wires="a"), qml.RY(0.456, wires="b")],
          [qml.expval(qml.PauliX("a"))],
          trainable_params=[0, 1],
      )
  
      calculated_val = adjoint_jacobian(qs)
  
      tapes, fn = qml.gradients.finite_diff(qs)
      results = tuple(qml.devices.qubit.simulate(t) for t in tapes)
      numeric_val = fn(results)
      assert np.allclose(calculated_val, numeric_val, atol=tol, rtol=0)
  
imports: import pytest
  import pennylane
  from pennylane.devices.qubit import adjoint_jacobian, adjoint_jvp, adjoint_vjp
  from pennylane.tape import QuantumScript
  import pennylane.numpy
label_desc: Use image node_id 1 for calling the TestAdjointJacobian obj's underlying member method code with example usage: obj.test_custom_wire_labels(tol) without return types