code: def classic_prompt():
      """Strip the >>>/... prompts of the Python interactive shell."""
      # FIXME: non-capturing version (?:...) usable?
      prompt_re = re.compile(r"^(>>>|\.\.\.)( |$)")
      initial_re = re.compile(r"^>>>( |$)")
      # Any %magic/!system is IPython syntax, so we needn't look for >>> prompts
      turnoff_re = re.compile(r"^[%!]")
      return _strip_prompts(prompt_re, initial_re, turnoff_re)
  
imports: import abc
  import functools
  import re
  from IPython.core.splitinput import LineInfo
  from IPython.utils import tokenize2
  from IPython.utils.openpy import cookie_comment_re
  from IPython.utils.py3compat import with_metaclass, PY3
  from IPython.utils.tokenize2 import generate_tokens, untokenize, TokenError
label_desc: Use image node_id 17 for calling a global function with example usage: classic_prompt() and returns: _strip_prompts