docstr: Try to compile, link to an executable, and run a program
  built from 'body' and 'headers'.  Return true on success, false
  otherwise.
docstr_tok: ["Try","to","compile",",","link","to","an","executable",",","and","run","a","program","built","from","'body","'","and","'headers","'",".","Return","true","on","success",",","false","otherwise","."]
code: def try_run(
      self,
      body,
      headers=None,
      include_dirs=None,
      libraries=None,
      library_dirs=None,
      lang="c",
  ):
      """Try to compile, link to an executable, and run a program
      built from 'body' and 'headers'.  Return true on success, false
      otherwise.
      """
      from ..ccompiler import CompileError, LinkError
  
      self._check_compiler()
      try:
          src, obj, exe = self._link(
              body, headers, include_dirs, libraries, library_dirs, lang
          )
          self.spawn([exe])
          ok = True
      except (CompileError, LinkError, DistutilsExecError):
          ok = False
  
      log.info(ok and "success!" or "failure.")
      self._clean()
      return ok
  
imports: import os
  import re
  from ..core import Command
  from ..errors import DistutilsExecError
  from ..sysconfig import customize_compiler
  from distutils._log import log
label_desc: Use image node_id 14 for calling the config obj's underlying member method code with example usage: obj.try_run(body, headers, include_dirs, libraries, library_dirs, lang) and returns: ok