code: def test_nested():
      expr = Basic(S(1), Basic(S(2)), S(3))
      cmpd = Compound(Basic, (S(1), Compound(Basic, Tuple(2)), S(3)))
      assert deconstruct(expr) == cmpd
      assert construct(cmpd) == expr
  
imports: from sympy.core.add import Add
  from sympy.core.basic import Basic
  from sympy.core.containers import Tuple
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, symbols
  from sympy.logic.boolalg import And
  from sympy.core.symbol import Str
  from sympy.unify.core import Compound, Variable
  from sympy.unify.usympy import deconstruct, construct, unify, is_associative, is_commutative
  from sympy.abc import x, y, z, n
label_desc: Use image node_id 3 for calling a global function with example usage: test_nested() without return types