code: def _calculate_sha256_for_file(path):
      sha256 = hashlib.sha256()
      with open(path, "rb") as f:
          for block in iter(lambda: f.read(filecmp.BUFSIZE), b""):
              sha256.update(block)
      return sha256.hexdigest()
  
imports: import os
  import sys
  import hashlib
  import filecmp
  from collections import namedtuple
  from jedi._compatibility import highest_pickle_protocol, which
  from jedi.cache import memoize_method, time_cache
  from jedi.evaluate.compiled.subprocess import CompiledSubprocess, EvaluatorSameProcess, EvaluatorSubprocess
  import parso
label_desc: Use image node_id 3 for calling a global function with example usage: _calculate_sha256_for_file(path) and returns: sha256