def _md5_hash_file(path, read_size=2560):
    import hashlib
    hash_function = hashlib.md5()
    with open(path, 'r') as my_file:
      data = my_file.read(read_size)
      while data:
        hash_function.update(data)
        data = my_file.read(read_size)
    return hash_function.digest()
  # If running from trunk, SCRIPT_TO_RENAME should exist.
  # For the distributed tarball, they should not.
Return a binary md5 checksum of file at path.
dataset/ETHPy150Open vinitkumar/googlecl/setup.py/_md5_hash_file