code: def test_qubit():
      q1 = Qubit("0101")
      q2 = IntQubit(8)
      assert str(q1) == "|0101>"
      assert pretty(q1) == "|0101>"
      assert upretty(q1) == "❘0101⟩"
      assert latex(q1) == r"{\left|0101\right\rangle }"
      sT(q1, "Qubit(Integer(0),Integer(1),Integer(0),Integer(1))")
      assert str(q2) == "|8>"
      assert pretty(q2) == "|8>"
      assert upretty(q2) == "❘8⟩"
      assert latex(q2) == r"{\left|8\right\rangle }"
      sT(q2, "IntQubit(8)")
  
imports: from __future__ import annotations
  from typing import Any
  from sympy.physics.quantum.anticommutator import AntiCommutator
  from sympy.physics.quantum.cg import CG, Wigner3j, Wigner6j, Wigner9j
  from sympy.physics.quantum.commutator import Commutator
  from sympy.physics.quantum.constants import hbar
  from sympy.physics.quantum.dagger import Dagger
  from sympy.physics.quantum.gate import CGate, CNotGate, IdentityGate, UGate, XGate
  from sympy.physics.quantum.hilbert import ComplexSpace, FockSpace, HilbertSpace, L2
  from sympy.physics.quantum.innerproduct import InnerProduct
  from sympy.physics.quantum.operator import Operator, OuterProduct, DifferentialOperator
  from sympy.physics.quantum.qexpr import QExpr
  from sympy.physics.quantum.qubit import Qubit, IntQubit
  from sympy.physics.quantum.spin import Jz, J2, JzBra, JzBraCoupled, JzKet, JzKetCoupled, Rotation, WignerD
  from sympy.physics.quantum.state import Bra, Ket, TimeDepBra, TimeDepKet
  from sympy.physics.quantum.tensorproduct import TensorProduct
  from sympy.physics.quantum.sho1d import RaisingOp
  from sympy.core.function import Derivative, Function
  from sympy.core.numbers import oo
  from sympy.core.power import Pow
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, symbols
  from sympy.matrices.dense import Matrix
  from sympy.sets.sets import Interval
  from sympy.testing.pytest import XFAIL
  from sympy.physics.quantum.spin import JzOp
  from sympy.printing import srepr
  from sympy.printing.pretty import pretty
  from sympy.printing.latex import latex
label_desc: Use image node_id 15 for calling a global function with example usage: test_qubit() without return types