code: def test_AppliedPermutation():
      x = Symbol("x")
      p = Permutation(0, 1, 2)
      raises(ValueError, lambda: AppliedPermutation((0, 1, 2), x))
      assert AppliedPermutation(p, 1, evaluate=True) == 2
      assert (
          AppliedPermutation(p, 1, evaluate=False).__class__
          == AppliedPermutation
      )
  
imports: from itertools import permutations
  from copy import copy
  from sympy.core.expr import unchanged
  from sympy.core.numbers import Integer
  from sympy.core.relational import Eq
  from sympy.core.symbol import Symbol
  from sympy.core.singleton import S
  from sympy.combinatorics.permutations import Permutation, _af_parity, _af_rmul, _af_rmuln, AppliedPermutation, Cycle
  from sympy.printing import sstr, srepr, pretty, latex
  from sympy.testing.pytest import raises, warns_deprecated_sympy
label_desc: Use image node_id 16 for calling a global function with example usage: test_AppliedPermutation() without return types