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 not raised when calling qml.matrix on an operator, a
  single-wire tape, or a QNode with a device that provides wires.
code: def test_no_warning_cases(self):
      """Test that a warning is not raised when calling qml.matrix on an operator, a
      single-wire tape, or a QNode with a device that provides wires."""
  
      @qml.qnode(
          qml.device("default.qubit", wires=2)
      )  # device provides wire_order
      def circuit():
          qml.PauliX(0)
          return qml.state()
  
      with catch_warnings(record=True) as record:
          qml.matrix(qml.PauliX(0))
          qml.matrix(qml.tape.QuantumScript([qml.PauliX(1)]))
          qml.matrix(circuit)
  
      assert len(record) == 0
  
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 4 for calling the TestWireOrderDeprecation obj's underlying member method code with example usage: obj.test_no_warning_cases() and returns: qml