code: def _get_ssl_options(
      self, scheme: str
  ) -> Union[None, Dict[str, Any], ssl.SSLContext]:
      if scheme == "https":
          if self.request.ssl_options is not None:
              return self.request.ssl_options
          # If we are using the defaults, don't construct a
          # new SSLContext.
          if (
              self.request.validate_cert
              and self.request.ca_certs is None
              and self.request.client_cert is None
              and self.request.client_key is None
          ):
              return _client_ssl_defaults
          ssl_ctx = ssl.create_default_context(
              ssl.Purpose.SERVER_AUTH, cafile=self.request.ca_certs
          )
          if not self.request.validate_cert:
              ssl_ctx.check_hostname = False
              ssl_ctx.verify_mode = ssl.CERT_NONE
          if self.request.client_cert is not None:
              ssl_ctx.load_cert_chain(
                  self.request.client_cert, self.request.client_key
              )
          if hasattr(ssl, "OP_NO_COMPRESSION"):
              # See netutil.ssl_options_to_context
              ssl_ctx.options |= ssl.OP_NO_COMPRESSION
          return ssl_ctx
      return None
  
imports: from tornado.escape import _unicode
  from tornado import gen, version
  from tornado.httpclient import HTTPResponse, HTTPError, AsyncHTTPClient, main, _RequestProxy, HTTPRequest
  from tornado import httputil
  from tornado.http1connection import HTTP1Connection, HTTP1ConnectionParameters
  from tornado.ioloop import IOLoop
  from tornado.iostream import StreamClosedError, IOStream
  from tornado.netutil import Resolver, OverrideResolver, _client_ssl_defaults, is_valid_ip
  from tornado.log import gen_log
  from tornado.tcpclient import TCPClient
  import base64
  import collections
  import copy
  import functools
  import re
  import socket
  import ssl
  import sys
  import time
  from io import BytesIO
  import urllib.parse
  from typing import Dict, Any, Callable, Optional, Type, Union
  from types import TracebackType
  import typing
label_desc: Use image node_id 2 for calling the _HTTPConnection obj's underlying member method code with example usage: obj._get_ssl_options(scheme) and returns: None, ssl_ctx, self, _client_ssl_defaults