docstr: Close the connection to server.
  
  If available, return a http.client.HTTPResponse object.
  
  Closing the connection involves sending the
  Transfer-Encoding terminating bytes.
docstr_tok: ["Close","the","connection","to","server",".","If","available",",","return","a","http.client.HTTPResponse","object",".","Closing","the","connection","involves","sending","the","Transfer-Encoding","terminating","bytes","."]
code: def close(self):
      """Close the connection to server.
  
      If available, return a http.client.HTTPResponse object.
  
      Closing the connection involves sending the
      Transfer-Encoding terminating bytes.
      """
      self._reset_retries()
      self._closed = True
  
      # Chunked-encoded posts are terminated with '0\r\n\r\n'
      # For some reason, either Python or node.js seems to
      # require an extra \r\n.
      try:
          self._conn.send("\r\n0\r\n\r\n".encode("utf-8"))
      except http.client.socket.error:
          # In case the socket has already been closed
          return ""
  
      return self._getresponse()
  
imports: import http.client
  import os
  import ssl
  import time
  from io import StringIO
  from urllib.parse import urlparse, unquote
  from chart_studio.api import utils
label_desc: Use image node_id 6 for calling the Stream obj's underlying member method code with example usage: obj.close() and returns: self, str