code: def try_add_flag(args, compiler, flag, ext=None):
      """Appends flag to the list of arguments if supported by the compiler"""
      if try_compile(compiler, flags=args + [flag], ext=ext):
          args.append(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 5 for calling a global function with example usage: try_add_flag(args, compiler, flag, ext) without return types