class_docstr: Test for wire re-ordering
docstr: Test that wire order can be passed to a quantum function
docstr_tok: ["Test","that","wire","order","can","be","passed","to","a","quantum","function"]
code: def test_single_operator_qfunc(self, mocker):
      """Test that wire order can be passed to a quantum function"""
      spy = mocker.spy(qml.op_transform, "_make_tape")
      res = matrix(qml.PauliZ, wire_order=["a", 0])(0)
      expected = np.kron(np.eye(2), np.diag([1, -1]))
      assert np.allclose(res, expected)
      assert spy.spy_return[1].tolist() == ["a", 0]
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.transforms.op_transforms import OperationTransformError
label_desc: Use image node_id 2 for calling the TestWireOrder obj's underlying member method code with example usage: obj.test_single_operator_qfunc(mocker) without return types