def tryAuth(self, kind):
        """
        Dispatch to an authentication method.

        @param kind: the authentication method
        @type kind: L{bytes}
        """
        kind = nativeString(kind.replace(b'-', b'_'))
        log.msg('trying to auth with %s' % (kind,))
        f = getattr(self,'auth_%s' % (kind,), None)
        if f:
            return f()

        Dispatch to an authentication method.

        @param kind: the authentication method
        @type kind: L{bytes}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/ssh/userauth.py