code: def get_swig_target(source):
      f = open(source, "r")
      result = None
      line = f.readline()
      if _has_cpp_header(line):
          result = "c++"
      if _has_c_header(line):
          result = "c"
      f.close()
      return result
  
imports: from __future__ import division, absolute_import, print_function
  import os
  import re
  import sys
  import shlex
  import copy
  from distutils.command import build_ext
  from distutils.dep_util import newer_group, newer
  from distutils.util import get_platform
  from distutils.errors import DistutilsError, DistutilsSetupError
  from numpy.distutils import log
  from numpy.distutils.misc_util import fortran_ext_match, appendpath, is_string, is_sequence, get_cmd
  from numpy.distutils.from_template import process_file
  from numpy.distutils.conv_template import process_file
label_desc: Use image node_id 2 for calling a global function with example usage: get_swig_target(source) and returns: result