code: def test_qasm_qdef():
      # weaker test condition (str) since we don't have access to the actual class
      q = Qasm("def Q,0,Q", "qubit q0", "Q q0")
      assert str(q.get_circuit()) == "Q(0)"
  
      q = Qasm("def CQ,1,Q", "qubit q0", "qubit q1", "CQ q0,q1")
      assert str(q.get_circuit()) == "C((1),Q(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 16 for calling a global function with example usage: test_qasm_qdef() without return types