code: def get_cxx_std_flag(compiler):
      """Detects compiler flag for c++14, c++11, or None if not detected"""
      # GNU C compiler documentation uses single dash:
      #    https://gcc.gnu.org/onlinedocs/gcc/Standards.html
      # but silently understands two dashes, like --std=c++11 too.
      # Other GCC compatible compilers, like Intel C Compiler on Linux do not.
      gnu_flags = ["-std=c++14", "-std=c++11"]
      flags_by_cc = {
          "msvc": ["/std:c++14", None],
          "intelw": ["/Qstd=c++14", "/Qstd=c++11"],
          "intelem": ["-std=c++14", "-std=c++11"],
      }
      flags = flags_by_cc.get(compiler.compiler_type, gnu_flags)
  
      for flag in flags:
          if flag is None:
              return None
  
          if has_flag(compiler, flag, ext=".cpp"):
              return flag
  
      from numpy.distutils import log
  
      log.warn("Could not detect c++ standard flag")
      return None
  
file_path: catboost/contrib/python/scipy/py3/scipy/_build_utils/compiler_helper.py
imports: import tempfile
  import os
  import sys
  from numpy.distutils.system_info import dict_append
label_desc: Use image node_id 3 for calling a global function with example usage: get_cxx_std_flag(compiler) and returns: None, None, flag