code: def last_two_blanks(src):
      """Determine if the input source ends in two blanks.
  
      A blank is either a newline or a line consisting of whitespace.
  
      Parameters
      ----------
      src : string
        A single or multiline string.
      """
      if not src:
          return False
      # The logic here is tricky: I couldn't get a regexp to work and pass all
      # the tests, so I took a different approach: split the source by lines,
      # grab the last two and prepend '###\n' as a stand-in for whatever was in
      # the body before the last two lines.  Then, with that structure, it's
      # possible to analyze with two regexps.  Not the most elegant solution, but
      # it works.  If anyone tries to change this logic, make sure to validate
      # the whole test suite first!
      new_src = "\n".join(["###\n"] + src.splitlines()[-2:])
      return bool(last_two_blanks_re.match(new_src)) or bool(
          last_two_blanks_re2.match(new_src)
      )
  
imports: import ast
  import codeop
  import re
  import sys
  import warnings
  from IPython.utils.py3compat import cast_unicode
  from IPython.core.inputtransformer import leading_indent, classic_prompt, ipy_prompt, strip_encoding_cookie, cellmagic, assemble_logical_lines, help_end, escaped_commands, assign_from_magic, assign_from_system, assemble_python_lines
  from IPython.core.inputtransformer import ESC_SHELL, ESC_SH_CAP, ESC_HELP, ESC_HELP2, ESC_MAGIC, ESC_MAGIC2, ESC_QUOTE, ESC_QUOTE2, ESC_PAREN, ESC_SEQUENCES
label_desc: Use image node_id 3 for calling a global function with example usage: last_two_blanks(src) and returns: unknown, False