code: def check_gcc_function_attribute(cmd, attribute, name):
      """Return True if the given function attribute is supported."""
      cmd._check_compiler()
      body = """
  #pragma GCC diagnostic error "-Wattributes"
  #pragma clang diagnostic error "-Wattributes"
  
  int %s %s(void*);
  
  int
  main()
  {
      return 0;
  }
  """ % (
          attribute,
          name,
      )
      return cmd.try_compile(body, None, None) != 0
  
imports: from __future__ import division, absolute_import, print_function
label_desc: Use image node_id 4 for calling a global function with example usage: check_gcc_function_attribute(cmd, attribute, name) and returns: unknown