code: def assign_from_magic(line):
      """Transform assignment from magic commands (e.g. a = %who_ls)"""
      m = assign_magic_re.match(line)
      if m is None:
          return line
  
      return assign_magic_template % m.group("lhs", "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 22 for calling a global function with example usage: assign_from_magic(line) and returns: unknown, line