def METHOD_NAME(self, filename, chunk_size=DefaultPartSize,
                     verify_hashes=True, retry_exceptions=(socket.error,)):
    """Download an archive to a file by name.
    :type filename: str
    :param filename: The name of the file where the archive
        contents will be saved.
    :type chunk_size: int
    :param chunk_size: The chunk size to use when downloading
        the archive.
    :type verify_hashes: bool
    :param verify_hashes: Indicates whether or not to verify
        the tree hashes for each downloaded chunk.
    """
    num_chunks = self._calc_num_chunks(chunk_size)
    with open(filename, 'wb') as output_file:
        self._download_to_fileob(output_file, num_chunks, chunk_size,
                                 verify_hashes, retry_exceptions)