code: def test_issue_6073():
      x, y = symbols("x y", commutative=False)
      A = Ket(x, y)
      B = Operator("B")
      assert qapply(A) == A
      assert qapply(A.dual * B) == A.dual * B
  
imports: from sympy.core.mul import Mul
  from sympy.core.numbers import I, Integer, Rational
  from sympy.core.singleton import S
  from sympy.core.symbol import symbols
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.physics.quantum.anticommutator import AntiCommutator
  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 H, XGate, IdentityGate
  from sympy.physics.quantum.operator import Operator, IdentityOperator
  from sympy.physics.quantum.qapply import qapply
  from sympy.physics.quantum.spin import Jx, Jy, Jz, Jplus, Jminus, J2, JzKet
  from sympy.physics.quantum.tensorproduct import TensorProduct
  from sympy.physics.quantum.state import Ket
  from sympy.physics.quantum.density import Density
  from sympy.physics.quantum.qubit import Qubit, QubitBra
  from sympy.physics.quantum.boson import BosonOp, BosonFockKet, BosonFockBra
label_desc: Use image node_id 10 for calling a global function with example usage: test_issue_6073() without return types