code: def _tr_magic(line_info):
      "Translate lines escaped with: %"
      tpl = "%sget_ipython().magic(%r)"
      if line_info.line.startswith(ESC_MAGIC2):
          return line_info.line
      cmd = " ".join([line_info.ifun, line_info.the_rest]).strip()
      return tpl % (line_info.pre, cmd)
  
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 6 for calling a global function with example usage: _tr_magic(line_info) and returns: unknown, line_info