code: def qfunc_all_ops(theta):
      qml.Hadamard(wires=0)
      qml.RX(theta[0], wires=1)
      qml.SWAP(wires=[0, 1])
      qml.SWAP(wires=[0, 2])
      qml.RY(theta[1], wires=0)
      return qml.expval(qml.PauliZ(0))
  
file_path: pennylane/tests/transforms/test_optimization/test_undo_swaps.py
imports: import pytest
  from utils import compare_operation_lists
  import pennylane
  from pennylane import numpy
  from pennylane.wires import Wires
  from pennylane.transforms.optimization import undo_swaps
label_desc: Use image node_id 1 for calling a global function with example usage: qfunc_all_ops(theta) and returns: qml