code: def test_render_label():
      assert render_label("q0") == r"$\left|q0\right\rangle$"
      assert (
          render_label("q0", {"q0": "0"})
          == r"$\left|q0\right\rangle=\left|0\right\rangle$"
      )
  
file_path: sympy/sympy/physics/quantum/tests/test_circuitplot.py
imports: from sympy.physics.quantum.circuitplot import labeller, render_label, Mz, CreateOneQubitGate, CreateCGate
  from sympy.physics.quantum.gate import CNOT, H, SWAP, CGate, S, T
  from sympy.external import import_module
  from sympy.testing.pytest import skip
label_desc: Use image node_id 1 for calling a global function with example usage: test_render_label() without return types