from pathlib import Path
from typing import Tuple
import hashlib


def _hash_func(path: Path) -> Tuple[Path, str]:
    """Return a hash for the file at `path`."""
    return path, hashlib.md5(open(path, "rb").read()).hexdigest()