code: def finish(self):
      if (
          self._expected_content_remaining is not None
          and self._expected_content_remaining != 0
      ):
          self._error = httputil.HTTPOutputError(
              "Tried to write %d bytes less than Content-Length"
              % self._expected_content_remaining
          )
          raise self._error
      self._finished = True
  
imports: from __future__ import absolute_import, division, print_function
  import sys
  from io import BytesIO
  import tornado
  from tornado.concurrent import Future
  from tornado import escape
  from tornado import httputil
  from tornado.log import access_log
  from tornado import web
  from tornado.escape import native_str
  from tornado.util import unicode_type, PY3
label_desc: Use image node_id 5 for calling the _WSGIConnection obj's underlying member method code with example usage: obj.finish() without return types