code: def silent():
      stdout = sys.stdout
      try:
          sys.stdout = StringIO()
          yield
      finally:
          sys.stdout = stdout
  
imports: import sys
  import pstats
  import unittest
  import os
  from difflib import unified_diff
  from io import StringIO
  from test.support.os_helper import TESTFN, unlink, temp_dir, change_cwd
  from contextlib import contextmanager
  import profile
  from test.profilee import testfunc, timer
  from test.support.script_helper import assert_python_failure, assert_python_ok
label_desc: Use image node_id 2 for calling a global function with example usage: silent() without return types