class_docstr: File-like object writing to two streams.
code: def flush(self) -> None:
      if hasattr(self.stream_term, "flush"):
          self.stream_term.flush()
      if hasattr(self.stream_file, "flush"):
          self.stream_file.flush()
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from sphinx.util.console import _strip_escape_sequences
label_desc: Use image node_id 3 for calling the TeeStripANSI obj's underlying member method code with example usage: obj.flush() without return types