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
      # Prepare arguments for get_ipython().run_line_magic(magic_name, magic_args)
      m_lhs, m_cmd = m.group("lhs", "cmd")
      t_magic_name, _, t_magic_arg_s = m_cmd.partition(" ")
      t_magic_name = t_magic_name.lstrip(ESC_MAGIC)
      return assign_magic_template % (
          m_lhs,
          t_magic_name,
          t_magic_arg_s,
      )
  
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 21 for calling a global function with example usage: assign_from_magic(line) and returns: unknown, line