docstr: Determine if self._url should be passed through a proxy. If so, return
  the appropriate proxy_server and proxy_port. Assumes https_proxy is used
  when ssl_enabled=True.
docstr_tok: ["Determine","if","self._url","should","be","passed","through","a","proxy",".","If","so",",","return","the","appropriate","proxy_server","and","proxy_port",".","Assumes","https_proxy","is","used","when","ssl_enabled=True","."]
code: def _get_proxy_config(self):
      """
      Determine if self._url should be passed through a proxy. If so, return
      the appropriate proxy_server and proxy_port. Assumes https_proxy is used
      when ssl_enabled=True.
  
      """
  
      proxy_server = None
      proxy_port = None
      proxy_username = None
      proxy_password = None
      proxy_auth = None
      ssl_enabled = self._ssl_enabled
  
      if ssl_enabled:
          proxy = os.environ.get("https_proxy") or os.environ.get(
              "HTTPS_PROXY"
          )
      else:
          proxy = os.environ.get("http_proxy") or os.environ.get(
              "HTTP_PROXY"
          )
  
      no_proxy = os.environ.get("no_proxy") or os.environ.get(
          "NO_PROXY"
      )
      no_proxy_url = no_proxy and self._server in no_proxy
  
      if proxy and not no_proxy_url:
          p = urlparse(proxy)
          proxy_server = p.hostname
          proxy_port = p.port
          proxy_username = p.username
          proxy_password = p.password
  
      if proxy_username and proxy_password:
          username = unquote(proxy_username)
          password = unquote(proxy_password)
          proxy_auth = utils.basic_auth(username, password)
  
      return proxy_server, proxy_port, proxy_auth
  
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 3 for calling the Stream obj's underlying member method code with example usage: obj._get_proxy_config() and returns: proxy_server,  proxy_port,  proxy_auth