code: def fixcommand(c):
      """Fix Qasm command names.
  
      Remove all of forbidden characters from command c, and
      replace 'def' with 'qdef'.
      """
      forbidden_characters = ["-"]
      c = c.lower()
      for char in forbidden_characters:
          c = c.replace(char, "")
      if c == "def":
          return "qdef"
      return c
  
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 9 for calling a global function with example usage: fixcommand(c) and returns: c, str