code: def symmetric_poly(n, *gens, polys=False):
      """
      Generates symmetric polynomial of order `n`.
  
      Parameters
      ==========
  
      polys: bool, optional (default: False)
          Returns a Poly object when ``polys=True``, otherwise
          (default) returns an expression.
      """
      gens = _analyze_gens(gens)
  
      if n < 0 or n > len(gens) or not gens:
          raise ValueError(
              "Cannot generate symmetric polynomial of order %s for %s"
              % (n, gens)
          )
      elif not n:
          poly = S.One
      else:
          poly = Add(*[Mul(*s) for s in subsets(gens, int(n))])
  
      return Poly(poly, *gens) if polys else poly
  
imports: from sympy.core import Add, Mul, Symbol, sympify, Dummy, symbols
  from sympy.core.containers import Tuple
  from sympy.core.singleton import S
  from sympy.ntheory import nextprime
  from sympy.polys.densearith import dmp_add_term, dmp_neg, dmp_mul, dmp_sqr
  from sympy.polys.densebasic import dmp_zero, dmp_one, dmp_ground, dup_from_raw_dict, dmp_raise, dup_random
  from sympy.polys.domains import ZZ
  from sympy.polys.factortools import dup_zz_cyclotomic_poly
  from sympy.polys.polyclasses import DMP
  from sympy.polys.polytools import Poly, PurePoly
  from sympy.polys.polyutils import _analyze_gens
  from sympy.utilities import subsets, public, filldedent
  from sympy.polys.rings import ring
label_desc: Use image node_id 3 for calling a global function with example usage: symmetric_poly(n) and returns: unknown