code: def get_compiler_info(compiler):
      compiler_binary = os.path.basename(compiler).lower()
      if (
          len(compiler.split(" ")) > 1
          or compiler_binary == "ymake"
          or compiler_binary == "ymake.exe"
      ):
          compiler_ver_out = "Build by wrapper. No useful info here."
      else:
          compiler_ver_cmd = [compiler]
          if compiler_binary not in ("cl", "cl.exe"):
              compiler_ver_cmd.append("--version")
          env = os.environ.copy()
          env["LOCALE"] = "C"
          compiler_ver_out = (
              subprocess.Popen(
                  compiler_ver_cmd,
                  stdout=subprocess.PIPE,
                  stderr=subprocess.STDOUT,
                  env=env,
              )
              .stdout.read()
              .decode("utf-8")
          )
      return "\n".join(
          # fmt: off
          f'{indent * 2}{line.strip()}'
          for line in compiler_ver_out.splitlines()
          if line.strip()
          # fmt: on
      )
  
file_path: catboost/build/scripts/build_info_gen.py
imports: import subprocess
  import os
  import sys
  import re
label_desc: Use image node_id 5 for calling a global function with example usage: get_compiler_info(compiler) and returns: str