docstr: Try to compile a source file built from 'body' and 'headers'.
  Return true on success, false otherwise.
docstr_tok: ["Try","to","compile","a","source","file","built","from","'body","'","and","'headers","'",".","Return","true","on","success",",","false","otherwise","."]
code: def try_compile(
      self, body, headers=None, include_dirs=None, lang="c"
  ):
      """Try to compile a source file built from 'body' and 'headers'.
      Return true on success, false otherwise.
      """
      from distutils.ccompiler import CompileError
  
      self._check_compiler()
      try:
          self._compile(body, headers, include_dirs, lang)
          ok = True
      except CompileError:
          ok = False
  
      log.info(ok and "success!" or "failure.")
      self._clean()
      return ok
  
imports: import os, re
  from distutils.core import Command
  from distutils.errors import DistutilsExecError
  from distutils.sysconfig import customize_compiler
  from distutils import log
label_desc: Use image node_id 12 for calling the config obj's underlying member method code with example usage: obj.try_compile(body, headers, include_dirs, lang) and returns: ok