class_docstr: A session class that allows for the TLS verification mode of a WebSocket connection to be
  configured.
class_docstr_tok: ["A","session","class","that","allows","for","the","TLS","verification","mode","of","a","WebSocket","connection","to","be","configured","."]
code: def _wrap_socket(
      self, sock: socket.SocketType, host: str
  ) -> socket.SocketType:
      return self.ctx.wrap_socket(
          sock, server_hostname=self.cert_name or host
      )
  
imports: from __future__ import annotations
  import contextlib
  import io
  import os
  import socket
  import socketserver
  import ssl
  import sys
  import threading
  import time
  import urllib.request
  from dataclasses import dataclass
  from typing import Iterator, List, Optional, Union
  import lomond
  from determined.common.api import Session, authentication, bindings, request
label_desc: Use image node_id 2 for calling the CustomSSLWebsocketSession obj's underlying member method code with example usage: obj._wrap_socket(sock, host) and returns: self