code: def test_eval_args():
      # check instance created
      assert isinstance(Density([Ket(0), 0.5], [Ket(1), 0.5]), Density)
      assert isinstance(
          Density(
              [Qubit("00"), 1 / sqrt(2)], [Qubit("11"), 1 / sqrt(2)]
          ),
          Density,
      )
  
      # test if Qubit object type preserved
      d = Density(
          [Qubit("00"), 1 / sqrt(2)], [Qubit("11"), 1 / sqrt(2)]
      )
      for state, prob in d.args:
          assert isinstance(state, Qubit)
  
      # check for value error, when prob is not provided
      raises(ValueError, lambda: Density([Ket(0)], [Ket(1)]))
  
imports: from sympy.core.numbers import Rational
  from sympy.core.singleton import S
  from sympy.core.symbol import symbols
  from sympy.functions.elementary.exponential import log
  from sympy.external import import_module
  from sympy.physics.quantum.density import Density, entropy, fidelity
  from sympy.physics.quantum.state import Ket, TimeDepKet
  from sympy.physics.quantum.qubit import Qubit
  from sympy.physics.quantum.represent import represent
  from sympy.physics.quantum.dagger import Dagger
  from sympy.physics.quantum.cartesian import XKet, PxKet, PxOp, XOp
  from sympy.physics.quantum.spin import JzKet
  from sympy.physics.quantum.operator import OuterProduct
  from sympy.physics.quantum.trace import Tr
  from sympy.functions import sqrt
  from sympy.testing.pytest import raises
  from sympy.physics.quantum.matrixutils import scipy_sparse_matrix
  from sympy.physics.quantum.tensorproduct import TensorProduct
label_desc: Use image node_id 1 for calling a global function with example usage: test_eval_args() without return types