code: def get_file_sha256(path):
      sha256_output = run("shasum -a 256 {}".format(path), hide=True)
      if not sha256_output.ok:
          print("Error getting sha256.")
          print(sha256_output.stdout)
          exit()
      else:
          sha256 = sha256_output.stdout.split(" ", 1)[0]
          return sha256
  
imports: import os
  import tempfile
  import itertools
  import shutil
  import re
  from invoke import task, run
  from subprocess import call
  import semver
label_desc: Use image node_id 11 for calling a global function with example usage: get_file_sha256(path) and returns: sha256