def METHOD_NAME(self, chunk_offset):
    size = self.chunk_size
    if self.file_size is not None:
        size = min(size, self.file_size - chunk_offset)
    chunk_data = self._read_from_stream(chunk_offset, size)
    return self._upload_chunk_with_progress(chunk_offset, chunk_data)