code: def main():
      allowed_libs = {
          "": [
              "linux-vdso.so.1",
              "libm.so.6",
              "libpthread.so.0",
              "libc.so.6",
              "/lib64/ld-linux",
              "/lib/ld-linux",
              "libdl.so.2",
              "librt.so.1",
              "libstdc++.so.6",
              "libgcc_s.so.1",
              "libasan.so",
              "liblsan.so",
              "libubsan.so",
              "libtsan.so",
          ]
      }
  
      bundled_libs = argv[1:]
  
      # Gather all names of bundled libs without path
      bundled_lib_names = []
      for lib in bundled_libs:
          beg = lib.rfind("/")
          bundled_lib_names.append(lib[beg + 1 :])
  
      print("Checking bundled libs linkage:")
      for lib_path, lib_name in zip(bundled_libs, bundled_lib_names):
          print(f"- {lib_name}")
          ldd = subprocess.Popen(
              ["ldd", lib_path], stdout=subprocess.PIPE
          )
          for lib in ldd.stdout:
              lib = lib.decode().strip("\t").strip("\n")
              linked_lib = lib.split()[0]
              if not check_ldd_out(
                  lib_name, linked_lib, bundled_lib_names, allowed_libs
              ):
                  print(
                      f"Library: '{linked_lib}' should be bundled in whl "
                      f"or removed from the dynamic link dependency"
                  )
                  exit(1)
      print("-> OK")
  
imports: import subprocess
  from sys import argv
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types