docstr: Check that 'self.compiler' really is a CCompiler object;
  if not, make it one.
docstr_tok: ["Check","that","'self.compiler","'","really","is","a","CCompiler","object",";","if","not",",","make","it","one","."]
code: def _check_compiler(self):
      """Check that 'self.compiler' really is a CCompiler object;
      if not, make it one.
      """
      # We do this late, and only on-demand, because this is an expensive
      # import.
      from distutils.ccompiler import CCompiler, new_compiler
  
      if not isinstance(self.compiler, CCompiler):
          self.compiler = new_compiler(
              compiler=self.compiler, dry_run=self.dry_run, force=1
          )
          customize_compiler(self.compiler)
          if self.include_dirs:
              self.compiler.set_include_dirs(self.include_dirs)
          if self.libraries:
              self.compiler.set_libraries(self.libraries)
          if self.library_dirs:
              self.compiler.set_library_dirs(self.library_dirs)
  
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 4 for calling the config obj's underlying member method code with example usage: obj._check_compiler() without return types