code: def flatten(node):
      result = []
      if isinstance(node, _ast.AST):
          for value in ast_values(node):
              result.extend(flatten(value))
      elif isinstance(node, (list, tuple)):
          for child in node:
              result.extend(flatten(child))
      else:
          result.append(node)
  
      return result
  
file_path: turicreate/src/python/turicreate/meta/decompiler/util.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import _ast
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: flatten(node) and returns: result