code: def test_power():
      c = FermionOp("c")
      assert c**0 == 1
      assert c**1 == c
      assert c**2 == 0
      assert c**3 == 0
      assert Dagger(c) ** 1 == Dagger(c)
      assert Dagger(c) ** 2 == 0
  
      assert (c ** Symbol("a")).func == sympy.core.power.Pow
      assert (c ** Symbol("a")).args == (c, Symbol("a"))
  
      with raises(ValueError):
          c**-1
  
      with raises(ValueError):
          c**3.2
  
      with raises(TypeError):
          c**1j
  
file_path: sympy/sympy/physics/quantum/tests/test_fermion.py
imports: from pytest import raises
  import sympy
  from sympy.physics.quantum import Dagger, AntiCommutator, qapply
  from sympy.physics.quantum.fermion import FermionOp
  from sympy.physics.quantum.fermion import FermionFockKet, FermionFockBra
  from sympy import Symbol
label_desc: Use image node_id 3 for calling a global function with example usage: test_power() without return types