code: def escaped_commands(line: str):
      """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
  import tokenize
  from tokenize import untokenize, TokenError
  from io import StringIO
  from IPython.core.splitinput import LineInfo
  from IPython.utils import tokenutil
label_desc: Use image node_id 10 for calling a global function with example usage: escaped_commands(line) and returns: tr, line, line