code: def qfunc_all_ops(theta):
      qml.PauliX(wires=2)
      qml.S(wires=0)
      qml.CNOT(wires=[0, 1])
      qml.PauliY(wires=1)
      qml.CRY(theta[0], wires=[2, 1])
      qml.PhaseShift(theta[1], wires=0)
      qml.T(wires=0)
      qml.Toffoli(wires=[0, 1, 2])
      return qml.expval(qml.PauliZ(0))
  
imports: import pytest
  from utils import compare_operation_lists, check_matrix_equivalence
  import pennylane
  from pennylane import numpy
  from pennylane.wires import Wires
  from pennylane.transforms.optimization import commute_controlled
label_desc: Use image node_id 1 for calling a global function with example usage: qfunc_all_ops(theta) and returns: qml