code: def test_qasm_swap():
      q = Qasm(
          "qubit q0",
          "qubit q1",
          "cnot q0,q1",
          "cnot q1,q0",
          "cnot q0,q1",
      )
      assert q.get_circuit() == CNOT(1, 0) * CNOT(0, 1) * CNOT(1, 0)
  
file_path: sympy/sympy/physics/quantum/tests/test_qasm.py
imports: from sympy.physics.quantum.qasm import Qasm, flip_index, trim, get_index, nonblank, fullsplit, fixcommand, stripquotes, read_qasm
  from sympy.physics.quantum.gate import X, Z, H, S, T
  from sympy.physics.quantum.gate import CNOT, SWAP, CPHASE, CGate, CGateS
  from sympy.physics.quantum.circuitplot import Mz
label_desc: Use image node_id 4 for calling a global function with example usage: test_qasm_swap() without return types