code: def ast_types(node):
      rec = NodeRecorder()
      rec.visit(node)
      return rec.ast_nodenames
  
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 1 for calling a global function with example usage: ast_types(node) and returns: rec