class_docstr: Test that wire_order=None is deprecated for the qml.matrix transform.
class_docstr_tok: ["Test","that","wire_order=None","is","deprecated","for","the","qml.matrix","transform","."]
docstr: Test that a warning is raised when calling qml.matrix without wire_order on a tape.
code: def test_warning_tape(self):
      """Test that a warning is raised when calling qml.matrix without wire_order on a tape."""
      qs = qml.tape.QuantumScript([qml.PauliX(1), qml.PauliX(0)])
      with pytest.warns(
          qml.PennyLaneDeprecationWarning,
          match=r"Calling qml\.matrix\(\) on",
      ):
          _ = qml.matrix(qs)
  
imports: from functools import reduce, partial
  from warnings import catch_warnings
  import pytest
  from gate_data import I, X, Y, Z, H, S, CNOT, Rotx, Roty
  import pennylane
  from pennylane import numpy
  from pennylane.transforms.op_transforms import OperationTransformError
label_desc: Use image node_id 1 for calling the TestWireOrderDeprecation obj's underlying member method code with example usage: obj.test_warning_tape() without return types