code: def make_record(dir_path, dist_info_dir):
      record_filename = os.path.join(dist_info_dir, "RECORD")
      with open(record_filename, "w") as record:
          wheel_items = []
          for root, dirnames, filenames in os.walk(dir_path):
              for filename in filenames:
                  wheel_items.append(os.path.join(root, filename))
          tmp_dir_length = len(dir_path) + 1
          for item in wheel_items:
              if item != record_filename:
                  record.write(
                      item[tmp_dir_length:]
                      + ",sha256="
                      + urlsafe_b64encode(calc_sha256_digest(item))
                      .decode("ascii")
                      .rstrip("=")
                      + ","
                      + str(os.path.getsize(item))
                      + "\n"
                  )
              else:
                  record.write(item[tmp_dir_length:] + ",,\n")
  
imports: from __future__ import print_function
  import glob
  import subprocess
  import shutil
  import os
  import stat
  import sys
  import platform
  import tempfile
  import hashlib
  from base64 import urlsafe_b64encode
  from argparse import ArgumentParser
  from enum import Enum
label_desc: Use image node_id 11 for calling a global function with example usage: make_record(dir_path, dist_info_dir) without return types