code: def test_finiteset_rewrite_powerset():
      assert FiniteSet(S.EmptySet).rewrite(PowerSet) == PowerSet(
          S.EmptySet
      )
      assert FiniteSet(
          S.EmptySet, FiniteSet(1), FiniteSet(2), FiniteSet(1, 2)
      ).rewrite(PowerSet) == PowerSet(FiniteSet(1, 2))
      assert FiniteSet(1, 2, 3).rewrite(PowerSet) == FiniteSet(1, 2, 3)
  
file_path: sympy/sympy/sets/tests/test_powerset.py
imports: from sympy.core.expr import unchanged
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.sets.contains import Contains
  from sympy.sets.fancysets import Interval
  from sympy.sets.powerset import PowerSet
  from sympy.sets.sets import FiniteSet
  from sympy.testing.pytest import raises, XFAIL
label_desc: Use image node_id 3 for calling a global function with example usage: test_finiteset_rewrite_powerset() without return types