docstr: Small wrapper that make an IPython compatible style from a style name
  
  We need that to add style for prompt ... etc.
code: def _make_style_from_name_or_cls(self, name_or_cls):
      """
      Small wrapper that make an IPython compatible style from a style name
  
      We need that to add style for prompt ... etc.
      """
      style_overrides = {}
      if name_or_cls == "legacy":
          legacy = self.colors.lower()
          if legacy == "linux":
              style_cls = get_style_by_name("monokai")
              style_overrides = _style_overrides_linux
          elif legacy == "lightbg":
              style_overrides = _style_overrides_light_bg
              style_cls = get_style_by_name("pastie")
          elif legacy == "neutral":
              # The default theme needs to be visible on both a dark background
              # and a light background, because we can't tell what the terminal
              # looks like. These tweaks to the default theme help with that.
              style_cls = get_style_by_name("default")
              style_overrides.update(
                  {
                      Token.Number: "#007700",
                      Token.Operator: "noinherit",
                      Token.String: "#BB6622",
                      Token.Name.Function: "#2080D0",
                      Token.Name.Class: "bold #2080D0",
                      Token.Name.Namespace: "bold #2080D0",
                      Token.Prompt: "#009900",
                      Token.PromptNum: "#00ff00 bold",
                      Token.OutPrompt: "#990000",
                      Token.OutPromptNum: "#ff0000 bold",
                  }
              )
  
              # Hack: Due to limited color support on the Windows console
              # the prompt colors will be wrong without this
              if os.name == "nt":
                  style_overrides.update(
                      {
                          Token.Prompt: "#ansidarkgreen",
                          Token.PromptNum: "#ansigreen bold",
                          Token.OutPrompt: "#ansidarkred",
                          Token.OutPromptNum: "#ansired bold",
                      }
                  )
          elif legacy == "nocolor":
              style_cls = _NoStyle
              style_overrides = {}
          else:
              raise ValueError("Got unknown colors: ", legacy)
      else:
          if isinstance(name_or_cls, string_types):
              style_cls = get_style_by_name(name_or_cls)
          else:
              style_cls = name_or_cls
          style_overrides = {
              Token.Prompt: "#009900",
              Token.PromptNum: "#00ff00 bold",
              Token.OutPrompt: "#990000",
              Token.OutPromptNum: "#ff0000 bold",
          }
      style_overrides.update(self.highlighting_style_overrides)
      style = PygmentsStyle.from_defaults(
          pygments_style_cls=style_cls, style_dict=style_overrides
      )
  
      return style
  
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 11 for calling the TerminalInteractiveShell obj's underlying member method code with example usage: obj._make_style_from_name_or_cls(name_or_cls) and returns: style