code: def enable_win_unicode_console(self):
      if sys.version_info >= (3, 6):
          # Since PEP 528, Python uses the unicode APIs for the Windows
          # console by default, so WUC shouldn't be needed.
          return
  
      import win_unicode_console
  
      if PY3:
          win_unicode_console.enable()
      else:
          # https://github.com/ipython/ipython/issues/9768
          from win_unicode_console.streams import (
              TextStreamWrapper,
              stdout_text_transcoded,
              stderr_text_transcoded,
          )
  
          class LenientStrStreamWrapper(TextStreamWrapper):
              def write(self, s):
                  if isinstance(s, bytes):
                      s = s.decode(self.encoding, "replace")
  
                  self.base.write(s)
  
          stdout_text_str = LenientStrStreamWrapper(
              stdout_text_transcoded
          )
          stderr_text_str = LenientStrStreamWrapper(
              stderr_text_transcoded
          )
  
          win_unicode_console.enable(
              stdout=stdout_text_str, stderr=stderr_text_str
          )
  
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 15 for calling the TerminalInteractiveShell obj's underlying member method code with example usage: obj.enable_win_unicode_console() without return types