code: def test_dup_zz_cyclotomic_poly():
      R, x = ring("x", ZZ)
  
      assert R.dup_zz_cyclotomic_poly(1) == x - 1
      assert R.dup_zz_cyclotomic_poly(2) == x + 1
      assert R.dup_zz_cyclotomic_poly(3) == x**2 + x + 1
      assert R.dup_zz_cyclotomic_poly(4) == x**2 + 1
      assert (
          R.dup_zz_cyclotomic_poly(5)
          == x**4 + x**3 + x**2 + x + 1
      )
      assert R.dup_zz_cyclotomic_poly(6) == x**2 - x + 1
      assert (
          R.dup_zz_cyclotomic_poly(7)
          == x**6 + x**5 + x**4 + x**3 + x**2 + x + 1
      )
      assert R.dup_zz_cyclotomic_poly(8) == x**4 + 1
      assert R.dup_zz_cyclotomic_poly(9) == x**6 + x**3 + 1
  
imports: from sympy.polys.rings import ring, xring
  from sympy.polys.domains import FF, ZZ, QQ, ZZ_I, QQ_I, RR, EX
  from sympy.polys import polyconfig
  from sympy.polys.polyerrors import DomainError
  from sympy.polys.polyclasses import ANP
  from sympy.polys.specialpolys import f_polys, w_polys
  from sympy.core.numbers import I
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.functions.elementary.trigonometric import sin
  from sympy.ntheory.generate import nextprime
  from sympy.testing.pytest import raises, XFAIL
label_desc: Use image node_id 9 for calling a global function with example usage: test_dup_zz_cyclotomic_poly() without return types