code: def escaped_commands(line):
      """Transform escaped commands - %magic, !system, ?help + various autocalls."""
      if not line or line.isspace():
          return line
      lineinf = LineInfo(line)
      if lineinf.esc not in tr:
          return line
  
      return tr[lineinf.esc](lineinf)
  
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 10 for calling a global function with example usage: escaped_commands(line) and returns: tr, line, line