code: def test_rewrite_as_Abs():
      from itertools import permutations
      from sympy.functions.elementary.complexes import Abs
      from sympy.abc import x, y, z, w
  
      def test(e):
          free = e.free_symbols
          a = e.rewrite(Abs)
          assert not a.has(Min, Max)
          for i in permutations(range(len(free))):
              reps = dict(zip(free, i))
              assert a.xreplace(reps) == e.xreplace(reps)
  
      test(Min(x, y))
      test(Max(x, y))
      test(Min(x, y, z))
      test(Min(Max(w, x), Max(y, z)))
  
imports: import itertools
  from sympy.core.expr import unchanged
  from sympy.core.function import Function
  from sympy.core.numbers import I, oo, Rational
  from sympy.core.power import Pow
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.external import import_module
  from sympy.functions.elementary.exponential import log
  from sympy.functions.elementary.integers import floor, ceiling
  from sympy.functions.elementary.miscellaneous import sqrt, cbrt, root, Min, Max, real_root, Rem
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.functions.special.delta_functions import Heaviside
  from sympy.utilities.lambdify import lambdify
  from sympy.testing.pytest import raises, skip, ignore_warnings
label_desc: Use image node_id 14 for calling a global function with example usage: test_rewrite_as_Abs() without return types