class_docstr: context manager for capturing stdout/err
class_docstr_tok: ["context","manager","for","capturing","stdout\/err"]
code: def __init__(self, stdout=True, stderr=True, display=True):
      self.stdout = stdout
      self.stderr = stderr
      self.display = display
      self.shell = None
  
imports: import sys
  from io import StringIO
label_desc: Use image node_id 1 to create a new capture_output object from inherited base classes: object with example: obj = capture_output(stdout, stderr, display)