code: def has_function(function_name, libraries=None):
    
    compiler = distutils.ccompiler.new_compiler()
    with muted(sys.stdout, sys.stderr):
      result = compiler.has_function(
          function_name, libraries=libraries)
    if os.path.exists('a.out'):
      os.remove('a.out')
    return result
docs: Checks if a given functions exists in the current platform.