code: def test_AlgIntPowers_02():
      T = Poly(x**3 + 2 * x**2 + 3 * x + 4)
      m = 7
      theta_pow = AlgIntPowers(T, m)
      for e in range(10):
          computed = theta_pow[e]
          coeffs = (Poly(x) ** e % T + Poly(x**3)).rep.to_list()[1:]
          expected = [c % m for c in reversed(coeffs)]
          assert computed == expected
  
file_path: sympy/sympy/polys/numberfields/tests/test_utilities.py
imports: from sympy.abc import x
  from sympy.core.numbers import I, Rational
  from sympy.core.singleton import S
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.polys import Poly, cyclotomic_poly
  from sympy.polys.domains import FF, QQ
  from sympy.polys.matrices import DomainMatrix, DM
  from sympy.polys.matrices.exceptions import DMRankError
  from sympy.polys.numberfields.utilities import AlgIntPowers, coeff_search, extract_fundamental_discriminant, isolate, supplement_a_subspace
  from sympy.printing.lambdarepr import IntervalPrinter
  from sympy.testing.pytest import raises
label_desc: Use image node_id 2 for calling a global function with example usage: test_AlgIntPowers_02() without return types