code: def init_io(self):
      if sys.platform not in {"win32", "cli"}:
          return
  
      self.enable_win_unicode_console()
  
      import colorama
  
      colorama.init()
  
      # For some reason we make these wrappers around stdout/stderr.
      # For now, we need to reset them so all output gets coloured.
      # https://github.com/ipython/ipython/issues/8669
      # io.std* are deprecated, but don't show our own deprecation warnings
      # during initialization of the deprecated API.
      with warnings.catch_warnings():
          warnings.simplefilter("ignore", DeprecationWarning)
          io.stdout = io.IOStream(sys.stdout)
          io.stderr = io.IOStream(sys.stderr)
  
imports: from __future__ import print_function
  import os
  import sys
  import warnings
  from warnings import warn
  from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC
  from IPython.utils import io
  from IPython.utils.py3compat import PY3, cast_unicode_py2, input, string_types
  from IPython.utils.terminal import toggle_set_term_title, set_term_title
  from IPython.utils.process import abbrev_cwd
  from traitlets import Bool, Unicode, Dict, Integer, observe, Instance, Type, default, Enum, Union
  from prompt_toolkit.document import Document
  from prompt_toolkit.enums import DEFAULT_BUFFER, EditingMode
  from prompt_toolkit.filters import HasFocus, Condition, IsDone
  from prompt_toolkit.history import InMemoryHistory
  from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
  from prompt_toolkit.interface import CommandLineInterface
  from prompt_toolkit.key_binding.manager import KeyBindingManager
  from prompt_toolkit.layout.processors import ConditionalProcessor, HighlightMatchingBracketProcessor
  from prompt_toolkit.styles import PygmentsStyle, DynamicStyle
  from pygments.styles import get_style_by_name
  from pygments.style import Style
  from pygments.token import Token
  from .debugger import TerminalPdb, Pdb
  from .magics import TerminalMagics
  from .pt_inputhooks import get_inputhook_name_and_func
  from .prompts import Prompts, ClassicPrompts, RichPromptDisplayHook
  from .ptutils import IPythonPTCompleter, IPythonPTLexer
  from .shortcuts import register_ipython_shortcuts
  from pygments.style import Style
label_desc: Use image node_id 16 for calling the TerminalInteractiveShell obj's underlying member method code with example usage: obj.init_io() without return types