code: def _docker_machine_ssl_context():
          
          context = ssl.SSLContext(ssl.PROTOCOL_TLS)
          context.set_ciphers(ssl._RESTRICTED_SERVER_CIPHERS)
          certs_path = os.environ.get("DOCKER_CERT_PATH", None)
          if certs_path is None:
              raise ValueError(
                  "Cannot create ssl context, " "DOCKER_CERT_PATH is not set!"
              )
          certs_path = Path(certs_path)
          context.load_verify_locations(cafile=certs_path / "ca.pem")
          context.load_cert_chain(
              certfile=certs_path / "cert.pem", keyfile=certs_path / "key.pem"
          )
          return context
docs: Create a SSLContext object using DOCKER_* env vars.