code: def test_CMod():
      assert qapply(
          CMod(4, 2, 2) * Qubit(0, 0, 1, 0, 0, 0, 0, 0)
      ) == Qubit(0, 0, 1, 0, 0, 0, 0, 0)
      assert qapply(
          CMod(5, 5, 7) * Qubit(0, 0, 1, 0, 0, 0, 0, 0, 0, 0)
      ) == Qubit(0, 0, 1, 0, 0, 0, 0, 0, 1, 0)
      assert qapply(CMod(3, 2, 3) * Qubit(0, 1, 0, 0, 0, 0)) == Qubit(
          0, 1, 0, 0, 0, 1
      )
  
imports: from sympy.testing.pytest import XFAIL
  from sympy.physics.quantum.qapply import qapply
  from sympy.physics.quantum.qubit import Qubit
  from sympy.physics.quantum.shor import CMod, getr
label_desc: Use image node_id 1 for calling a global function with example usage: test_CMod() without return types