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.
docstr: Flush both channels.
docstr_tok: ["Flush","both","channels","."]
code: def flush(self):
      """Flush both channels."""
      self.file.flush()
      self.ostream.flush()
  
imports: from __future__ import print_function
  from __future__ import absolute_import
  import atexit
  import os
  import sys
  import tempfile
  import warnings
  from warnings import warn
  from IPython.utils.decorators import undoc
  from .capture import CapturedIO, capture_output
  from .py3compat import string_types, input, PY3
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