def METHOD_NAME():
    sock = socket.create_connection((self.host, self.port), self.timeout)
    if getattr(self, "_tunnel_host", None):
        self.sock = sock
        self._tunnel()
    return sock