def check_against_file(self, file):
        # type: (BinaryIO) -> None
        """Check good hashes against a file-like object

        Raise HashMismatch if none match.

        """
        return self.check_against_chunks(read_chunks(file))
Check good hashes against a file-like object

        Raise HashMismatch if none match.

        
product/gradle-plugin/src/main/python/pip/_internal/utils/hashes.py