docstr: Initialize an HTTP/HTTPS connection with chunked Transfer-Encoding
  to server:port with optional headers.
docstr_tok: ["Initialize","an","HTTP\/HTTPS","connection","with","chunked","Transfer-Encoding","to","server",":","port","with","optional","headers","."]
code: def _connect(self):
      """Initialize an HTTP/HTTPS connection with chunked Transfer-Encoding
      to server:port with optional headers.
      """
      server = self._server
      port = self._port
      headers = self._headers
      ssl_enabled = self._ssl_enabled
      proxy_server, proxy_port, proxy_auth = self._get_proxy_config()
  
      if proxy_server and proxy_port:
          if ssl_enabled:
              context = self._get_ssl_context()
              self._conn = http.client.HTTPSConnection(
                  proxy_server, proxy_port, context=context
              )
          else:
              self._conn = http.client.HTTPConnection(
                  proxy_server, proxy_port
              )
  
          tunnel_headers = None
          if proxy_auth:
              tunnel_headers = {"Proxy-Authorization": proxy_auth}
  
          self._conn.set_tunnel(server, port, headers=tunnel_headers)
      else:
          if ssl_enabled:
              context = self._get_ssl_context()
              self._conn = http.client.HTTPSConnection(
                  server, port, context=context
              )
          else:
              self._conn = http.client.HTTPConnection(server, port)
  
      self._conn.putrequest("POST", self._url)
      self._conn.putheader("Transfer-Encoding", "chunked")
      for header in headers:
          self._conn.putheader(header, headers[header])
      self._conn.endheaders()
  
      # Set blocking to False prevents recv
      # from blocking while waiting for a response.
      self._conn.sock.setblocking(False)
      self._bytes = b""
      self._reset_retries()
      time.sleep(0.5)
  
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 5 for calling the Stream obj's underlying member method code with example usage: obj._connect() without return types