code: def get_sha256(fp: BinaryIO, chunk_size: int = 65536) -> str:
      sha256 = hashlib.sha256()
      fp.seek(0)
      chunk = fp.read(chunk_size)
      while len(chunk) > 0:
          sha256.update(chunk)
          chunk = fp.read(chunk_size)
      return sha256.hexdigest()
  
imports: import hashlib
  import math
  import string
  from typing import BinaryIO
label_desc: Use image node_id 1 for calling a global function with example usage: get_sha256(fp, chunk_size) and returns: sha256