code: def to_gnu(src, dest):
      d = collections.defaultdict(list)
      version = None
      for item in parse_export_file(src):
          if item.get("linux_version"):
              if not version:
                  version = item.get("linux_version")
              else:
                  raise Exception("More than one linux_version defined")
          elif item["lang"] == "C++":
              d["C"].extend(to_c(item["sym"]))
          else:
              d[item["lang"]].append(item["sym"])
  
      if version:
          dest.write("{} {{\nglobal:\n".format(version))
      else:
          dest.write("{\nglobal:\n")
  
      for k, v in d.items():
          dest.write('    extern "' + k + '" {\n')
  
          for x in v:
              dest.write("        " + x + ";\n")
  
          dest.write("    };\n")
  
      dest.write("local: *;\n};\n")
  
file_path: catboost/build/scripts/export_script_gen.py
imports: import argparse
  import collections
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: to_gnu(src, dest) without return types