class_docstr: A class to duplicate an output stream to stdout/err.
  
  This works in a manner very similar to the Unix 'tee' command.
  
  When the object is closed or deleted, it closes the original file given to
  it for duplication.
class_docstr_tok: ["A","class","to","duplicate","an","output","stream","to","stdout\/err",".","This","works","in","a","manner","very","similar","to","the","Unix","'tee","'","command",".","When","the","object","is","closed","or","deleted",",","it","closes","the","original","file","given","to","it","for","duplication","."]
docstr: Flush both channels.
docstr_tok: ["Flush","both","channels","."]
code: def flush(self):
      """Flush both channels."""
      self.file.flush()
      self.ostream.flush()
  
file_path: catboost/contrib/python/ipython/py3/IPython/utils/io.py
imports: import atexit
  import os
  import sys
  import tempfile
  from pathlib import Path
  from warnings import warn
  from IPython.utils.decorators import undoc
  from .capture import CapturedIO, capture_output
label_desc: Use image node_id 4 for calling the Tee obj's underlying member method code with example usage: obj.flush() without return types