code: def replace_nodes(root, old, new):
      """
      Replace the old node with the new one.
      Old must be an indirect child of root
  
      :param root: ast node that contains an indirect reference to old
      :param old: node to replace
      :param new: node to replace `old` with
      """
  
      rep = Replacer(old, new)
      rep.visit(root)
      return
  
file_path: turicreate/src/python/turicreate/meta/asttools/mutators/replace_mutator.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import _ast
  from ...asttools.visitors import Visitor
label_desc: Use image node_id 1 for calling a global function with example usage: replace_nodes(root, old, new) without return types