code: def has_flag(compiler, flag, ext=None):
      """Returns True if the compiler supports the given flag"""
      return try_compile(compiler, flags=[flag], ext=ext)
  
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 2 for calling a global function with example usage: has_flag(compiler, flag, ext) and returns: try_compile