code: def test_innerproduct():
      k = Ket("k")
      b = Bra("b")
      ip = InnerProduct(b, k)
      assert isinstance(ip, InnerProduct)
      assert ip.bra == b
      assert ip.ket == k
      assert b * k == InnerProduct(b, k)
      assert k * (b * k) * b == k * InnerProduct(b, k) * b
      assert InnerProduct(b, k).subs(b, Dagger(k)) == Dagger(k) * k
  
imports: from sympy.core.numbers import I, Integer
  from sympy.physics.quantum.innerproduct import InnerProduct
  from sympy.physics.quantum.dagger import Dagger
  from sympy.physics.quantum.state import Bra, Ket, StateBase
label_desc: Use image node_id 1 for calling a global function with example usage: test_innerproduct() without return types