class_docstr: Primary lexer for all IPython-like code.
  
  This is a simple helper lexer.  If the first line of the text begins with
  "In \[[0-9]+\]:", then the entire text is parsed with an IPython console
  lexer. If not, then the entire text is parsed with an IPython lexer.
  
  The goal is to reduce the number of lexers that are registered
  with Pygments.
code: def get_tokens_unprocessed(self, text):
      # Search for the input prompt anywhere...this allows code blocks to
      # begin with comments as well.
      if re.match(r".*(In \[[0-9]+\]:)", text.strip(), re.DOTALL):
          lex = self.IPythonConsoleLexer
      else:
          lex = self.IPythonLexer
      for token in lex.get_tokens_unprocessed(text):
          yield token
  
imports: import re
  from pygments.lexers import BashLexer, HtmlLexer, JavascriptLexer, RubyLexer, PerlLexer, PythonLexer, Python3Lexer, TexLexer
  from pygments.lexer import Lexer, DelegatingLexer, RegexLexer, do_insertions, bygroups, using
  from pygments.token import Generic, Keyword, Literal, Name, Operator, Other, Text, Error
  from pygments.util import get_bool_opt
label_desc: Use image node_id 2 for calling the IPyLexer obj's underlying member method code with example usage: obj.get_tokens_unprocessed(text) without return types