code: def assert_ast_eq(testcase, orig_ast, expected_ast):
      if not cmp_ast(orig_ast, expected_ast):
          str1 = str_ast(orig_ast, indent=" ", newline="\n")
          str2 = str_ast(expected_ast, indent=" ", newline="\n")
          msg = (
              "AST Trees are not equal\n## left ########### \n%s\n## right ########### \n%s"
              % (str1, str2)
          )
          testcase.fail(msg)
  
file_path: turicreate/src/python/turicreate/meta/asttools/tests/__init__.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import ast
  import inspect
  from ...asttools import Visitor, cmp_ast, str_ast
  from ...asttools.visitors.graph_visitor import GraphGen
label_desc: Use image node_id 2 for calling a global function with example usage: assert_ast_eq(testcase, orig_ast, expected_ast) without return types