code: def suppress_output(fn):
      """Suppresses the output of fn on sys.stdout."""
      save_stdout = sys.stdout
      try:
          sys.stdout = DummyFile()
          fn()
      finally:
          sys.stdout = save_stdout
  
file_path: sympy/examples/all.py
imports: import optparse
  import os
  import sys
  import traceback
  import sympy
label_desc: Use image node_id 4 for calling a global function with example usage: suppress_output(fn) without return types