class_docstr: context manager for capturing stdout/err
class_docstr_tok: ["context","manager","for","capturing","stdout\/err"]
code: def __exit__(self, exc_type, exc_value, traceback):
      sys.stdout = self.sys_stdout
      sys.stderr = self.sys_stderr
      if self.display and self.shell:
          self.shell.display_pub = self.save_display_pub
          sys.displayhook = self.save_display_hook
  
imports: from __future__ import print_function, absolute_import
  import sys
  from IPython.utils.py3compat import PY3
label_desc: Use image node_id 3 for calling the capture_output obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, traceback) without return types