code: def calc_sha256_digest(filename):
      sha256 = hashlib.sha256()
      with open(filename, "rb") as f:
          while True:
              chunk_size = 65536
              data = f.read(chunk_size)
              if not data:
                  break
              sha256.update(data)
      return sha256.digest()
  
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 10 for calling a global function with example usage: calc_sha256_digest(filename) and returns: sha256