code: def test_symmetric_poly():
      raises(ValueError, lambda: symmetric_poly(-1, x, y, z))
      raises(ValueError, lambda: symmetric_poly(5, x, y, z))
  
      assert symmetric_poly(1, x, y, z, polys=True) == Poly(x + y + z)
      assert symmetric_poly(1, (x, y, z), polys=True) == Poly(x + y + z)
  
      assert symmetric_poly(0, x, y, z) == 1
      assert symmetric_poly(1, x, y, z) == x + y + z
      assert symmetric_poly(2, x, y, z) == x * y + x * z + y * z
      assert symmetric_poly(3, x, y, z) == x * y * z
  
file_path: sympy/sympy/polys/tests/test_specialpolys.py
imports: from sympy.core.add import Add
  from sympy.core.symbol import symbols
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.ntheory.generate import prime
  from sympy.polys.domains.integerring import ZZ
  from sympy.polys.polytools import Poly
  from sympy.utilities.iterables import permute_signs
  from sympy.testing.pytest import raises
  from sympy.polys.specialpolys import swinnerton_dyer_poly, cyclotomic_poly, symmetric_poly, random_poly, interpolating_poly, fateman_poly_F_1, dmp_fateman_poly_F_1, fateman_poly_F_2, dmp_fateman_poly_F_2, fateman_poly_F_3, dmp_fateman_poly_F_3
  from sympy.abc import x, y, z
label_desc: Use image node_id 3 for calling a global function with example usage: test_symmetric_poly() without return types