code: def read_qasm(lines):
      return Qasm(*lines.splitlines())
  
imports: from math import prod
  from sympy.physics.quantum.gate import H, CNOT, X, Z, CGate, CGateS, SWAP, S, T, CPHASE
  from sympy.physics.quantum.circuitplot import Mz
label_desc: Use image node_id 1 for calling a global function with example usage: read_qasm(lines) and returns: Qasm