<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_hash(path, hash_alg="sha256"):
 """Get the hash of the file at ``path``. I'd love to make this async, but evidently file i/o is always ready Args: path (str):
 the path to the file to hash. hash_alg (str, optional):
 the algorithm to use. Defaults to 'sha256'. Returns: str: the hexdigest of the hash. """

    h = hashlib.new(hash_alg)
    with open(path, "rb") as f:
        for chunk in iter(functools.partial(f.read, 4096), b''):
            h.update(chunk)
    return h.hexdigest()