code: def compress_wheel(output_dir, wheel, wheel_dir, wheel_name):
      """Create RECORD file and compress wheel distribution."""
      print("Update RECORD file in wheel")
      dist_info = glob.glob(osp.join(output_dir, "*.dist-info"))[0]
      record_file = osp.join(dist_info, "RECORD")
  
      with open(record_file, "w") as f:
          for root, _, files in os.walk(output_dir):
              for this_file in files:
                  full_file = osp.join(root, this_file)
                  rel_file = osp.relpath(full_file, output_dir)
                  if full_file == record_file:
                      f.write(f"{rel_file},,\n")
                  else:
                      digest, size = rehash(full_file)
                      f.write(f"{rel_file},{digest},{size}\n")
  
      print("Compressing wheel")
      base_wheel_name = osp.join(wheel_dir, wheel_name)
      shutil.make_archive(base_wheel_name, "zip", output_dir)
      os.remove(wheel)
      shutil.move(f"{base_wheel_name}.zip", wheel)
      shutil.rmtree(output_dir)
  
imports: import glob
  import hashlib
  import os
  import os.path
  import platform
  import shutil
  import subprocess
  import sys
  import zipfile
  from base64 import urlsafe_b64encode
label_desc: Use image node_id 9 for calling a global function with example usage: compress_wheel(output_dir, wheel, wheel_dir, wheel_name) without return types