code: def fix_blas_resolving(cmd):
      # Intel mkl comes as a precompiled static library and thus can not be recompiled with sanitizer runtime instrumentation.
      # That's why we prefer to use cblas instead of Intel mkl as a drop-in replacement under sanitizers.
      # But if the library has dependencies on mkl and cblas simultaneously, it will get a linking error.
      # Hence we assume that it's probably compiling without sanitizers and we can easily remove cblas to prevent multiple definitions of the same symbol at link time.
      for arg in cmd:
          if arg.startswith("contrib/libs") and arg.endswith(
              "mkl-lp64.a"
          ):
              return [
                  arg
                  for arg in cmd
                  if not arg.endswith("libcontrib-libs-cblas.a")
              ]
      return cmd
  
file_path: catboost/build/scripts/link_exe.py
imports: import sys
  import subprocess
  import optparse
  import process_command_files
  from process_whole_archive_option import ProcessWholeArchiveOption
label_desc: Use image node_id 7 for calling a global function with example usage: fix_blas_resolving(cmd) and returns: cmd, unknown