class_docstr: Tests for the ``adjoint_jacobian`` method
class_docstr_tok: ["Tests","for","the","``","adjoint_jacobian","``","method"]
docstr: Tests warning raised when finite shots specified
docstr_tok: ["Tests","warning","raised","when","finite","shots","specified"]
code: def test_finite_shots_warns(self):
      """Tests warning raised when finite shots specified"""
  
      dev = qml.device("default.qubit.legacy", wires=1, shots=10)
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.expval(qml.PauliZ(0))
  
      tape = qml.tape.QuantumScript.from_queue(q)
      with pytest.warns(
          UserWarning,
          match="Requested adjoint differentiation to be computed with finite shots.",
      ):
          dev.adjoint_jacobian(tape)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestAdjointJacobian obj's underlying member method code with example usage: obj.test_finite_shots_warns() without return types