class_docstr: Collect ast nodes that assign to the same variable.
class_docstr_tok: ["Collect","ast","nodes","that","assign","to","the","same","variable","."]
code: def visitAssign(self, node):
      target_ids = [
          get_symbols(target, ast.Store) for target in node.targets
      ]
      target_ids = set.union(*target_ids)
  
      for id in target_ids:
          node_list = self.assign_id_map.setdefault(id, [])
          node_list.append(Assignment(root=node, assignments=(node,)))
  
file_path: turicreate/src/python/turicreate/meta/asttools/mutators/remove_trivial.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import _ast
  import ast
  from ...asttools.visitors.graph_visitor import GraphGen
  from ...asttools import Visitor, dont_visit, visit_children
  from ...asttools.mutators.replace_mutator import replace_nodes
  from ...asttools.visitors.symbol_visitor import get_symbols
  from ...asttools.visitors.cond_symbol_visitor import conditional_lhs
label_desc: Use image node_id 2 for calling the GatherAssignments obj's underlying member method code with example usage: obj.visitAssign(node) without return types