class_docstr: Transformer for assignments from magics (a = %foo)
class_docstr_tok: ["Transformer","for","assignments","from","magics","(","a","=","%","foo",")"]
docstr: Transform a magic assignment found by the ``find()`` classmethod.
          
docstr_tok: ["Transform","a","magic","assignment","found","by","the","``","find","(",")","``","classmethod","."]
code: def transform(self, lines: List[str]):
      """Transform a magic assignment found by the ``find()`` classmethod."""
      start_line, start_col = self.start_line, self.start_col
      lhs = lines[start_line][:start_col]
      end_line = find_end_of_continued_line(lines, start_line)
      rhs = assemble_continued_line(
          lines, (start_line, start_col), end_line
      )
      assert rhs.startswith("%"), rhs
      magic_name, _, args = rhs[1:].partition(" ")
  
      lines_before = lines[:start_line]
      call = "get_ipython().run_line_magic({!r}, {!r})".format(
          magic_name, args
      )
      new_line = lhs + call + "\n"
      lines_after = lines[end_line + 1 :]
  
      return lines_before + [new_line] + lines_after
  
imports: import ast
  from codeop import CommandCompiler, Compile
  import re
  import sys
  import tokenize
  from typing import List, Tuple, Optional, Any
  import warnings
  from IPython.utils import tokenutil
label_desc: Use image node_id 2 for calling the MagicAssign obj's underlying member method code with example usage: obj.transform(lines) and returns: unknown