class_docstr: Simple object for containing captured stdout/err and rich display StringIO objects
  
  Each instance `c` has three attributes:
  
  - ``c.stdout`` : standard output as a string
  - ``c.stderr`` : standard error as a string
  - ``c.outputs``: a list of rich display outputs
  
  Additionally, there's a ``c.show()`` method which will print all of the
  above in the same order, and can be invoked simply via ``c()``.
class_docstr_tok: ["Simple","object","for","containing","captured","stdout\/err","and","rich","display","StringIO","objects","Each","instance","`","c","`","has","three","attributes",":","-","``","c.stdout","``",":","standard","output","as","a","string","-","``","c.stderr","``",":","standard","error","as","a","string","-","``","c.outputs","``",":","a","list","of","rich","display","outputs","Additionally",",","there","'s","a","``","c.show","(",")","``","method","which","will","print","all","of","the","above","in","the","same","order",",","and","can","be","invoked","simply","via","``","c","(",")","``","."]
code: def __init__(self, stdout, stderr, outputs=None):
      self._stdout = stdout
      self._stderr = stderr
      if outputs is None:
          outputs = []
      self._outputs = outputs
  
imports: import sys
  from io import StringIO
label_desc: Use image node_id 1 to create a new CapturedIO object from inherited base classes: object with example: obj = CapturedIO(stdout, stderr, outputs)