code: def release_stdout(orig):
      "release stdout; return any trapped output as a string"
      out = sys.stdout.getvalue()
      sys.stdout.close()
      sys.stdout = orig
      return out
  
imports: import sys
  from io import StringIO
  import unittest
  from math import *
  from mystic.math import almostEqual
label_desc: Use image node_id 2 for calling a global function with example usage: release_stdout(orig) and returns: out