code: def generate_api(output_dir, force=False):
      basename = "multiarray_api"
  
      h_file = os.path.join(output_dir, "__%s.h" % basename)
      c_file = os.path.join(output_dir, "__%s.c" % basename)
      d_file = os.path.join(output_dir, "%s.txt" % basename)
      targets = (h_file, c_file, d_file)
  
      sources = numpy_api.multiarray_api
  
      if not force and not genapi.should_rebuild(
          targets, [numpy_api.__file__, __file__]
      ):
          return targets
      else:
          do_generate_api(targets, sources)
  
      return targets
  
imports: from __future__ import division, print_function
  import os
  import genapi
  from genapi import TypeApi, GlobalVarApi, FunctionApi, BoolValuesApi
  import numpy_api
label_desc: Use image node_id 1 for calling a global function with example usage: generate_api(output_dir, force) and returns: targets, targets