code: def set_cxx_flags_hook(build_ext, ext):
      """Sets basic compiler flags for compiling C++11 code"""
      cc = build_ext._cxx_compiler
      args = ext.extra_compile_args
  
      std_flag = get_cxx_std_flag(cc)
      if std_flag is not None:
          args.append(std_flag)
  
      if sys.platform == "darwin":
          # Set min macOS version
          min_macos_flag = "-mmacosx-version-min=10.9"
          if has_flag(cc, min_macos_flag):
              args.append(min_macos_flag)
              ext.extra_link_args.append(min_macos_flag)
  
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 7 for calling a global function with example usage: set_cxx_flags_hook(build_ext, ext) without return types