def getContext():
        """
        Returns a TLS context object, suitable for securing a TLS connection.
        This context object will be appropriately customized for the connection
        based on the state in this object.

        @return: A TLS context object.
        @rtype: L{OpenSSL.SSL.Context}
        """

        Returns a TLS context object, suitable for securing a TLS connection.
        This context object will be appropriately customized for the connection
        based on the state in this object.

        @return: A TLS context object.
        @rtype: L{OpenSSL.SSL.Context}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/interfaces.py