def METHOD_NAME(
    self, file_id, file_name, content_length, content_type, content_sha1, file_info,
    mod_time_millis, range_
):
    with self.download_dest.make_file_context(
        file_id, file_name, content_length, content_type, content_sha1, file_info,
        mod_time_millis, range_
    ) as file_:
        total_bytes = content_length
        if range_ is not None:
            total_bytes = range_[1] - range_[0] + 1
        self.progress_listener.set_total_bytes(total_bytes)
        with self.progress_listener:
            yield WritingStreamWithProgress(file_, self.progress_listener)