code: def https_connection(self):
          
          endpoint = self.endpoint
          host, remainder = endpoint.split(':', 1)
          port = remainder
          if '/' in remainder:
              port, _ = remainder.split('/', 1)
  
          conn = HTTPSConnection(
              host, int(port),
              context=self._get_ssl(self.cacert),
          )
  
          path = (
              "/model/{}".format(self.uuid)
              if self.uuid else ""
          )
          return conn, self._http_headers(), path
docs: Return an https connection to this Connection's endpoint.
  
          Returns a 3-tuple containing::
  
              1. The :class:`HTTPSConnection` instance
              2. Dictionary of auth headers to be used with the connection
              3. The root url path (str) to be used for requests.