code: def compile_func(ast_node, filename, globals, **defaults):
      """
      Compile a function from an ast.FunctionDef instance.
  
      :param ast_node: ast.FunctionDef instance
      :param filename: path where function source can be found.
      :param globals: will be used as func_globals
  
      :return: A python function object
      """
  
      function_name = ast_node.name
      module = _ast.Module(body=[ast_node])
  
      ctx = {"%s_default" % key: arg for key, arg in defaults.items()}
  
      code = compile(module, filename, "exec")
  
      eval(code, globals, ctx)
  
      function = ctx[function_name]
  
      return function
  
file_path: turicreate/src/python/turicreate/meta/decompiler/__init__.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from .instructions import make_module, make_function
  import _ast
  import struct
  import time
  import sys
  import marshal
label_desc: Use image node_id 2 for calling a global function with example usage: compile_func(ast_node, filename, globals) and returns: function