code: def gen_default_suppressions(inputs, output, source_root):
      import collections
      import os
  
      supp_map = collections.defaultdict(set)
      for filename in inputs:
          sanitizer = os.path.basename(filename).split(".", 1)[0]
          with open(os.path.join(source_root, filename)) as src:
              for line in src:
                  line = line.strip()
                  if not line or line.startswith("#"):
                      continue
                  supp_map[sanitizer].add(line)
  
      with open(output, "wb") as dst:
          for supp_type, supps in supp_map.items():
              dst.write(
                  'extern "C" const char *__%s_default_suppressions() {\n'
                  % supp_type
              )
              dst.write(
                  '    return "{}";\n'.format("\\n".join(sorted(supps)))
              )
              dst.write("}\n")
  
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 6 for calling a global function with example usage: gen_default_suppressions(inputs, output, source_root) without return types