code: def symmetric(n):
      """
      Generates the symmetric group of order n, Sn.
  
      Examples
      ========
  
      >>> from sympy.combinatorics.generators import symmetric
      >>> list(symmetric(3))
      [(2), (1 2), (2)(0 1), (0 1 2), (0 2 1), (0 2)]
      """
      for perm in variations(range(n), n):
          yield Permutation(perm)
  
file_path: sympy/sympy/combinatorics/generators.py
imports: from sympy.combinatorics.permutations import Permutation
  from sympy.core.symbol import symbols
  from sympy.matrices import Matrix
  from sympy.utilities.iterables import variations, rotate_left
label_desc: Use image node_id 1 for calling a global function with example usage: symmetric(n) without return types