def METHOD_NAME(self, server):
    # type: (Any) -> Dict[str, str]
    try:
        session = server.session.login_with_password(
            self.instance.get('username', ''), self.instance.get('password', '')
        )
        return session
    except Exception as e:
        self.log.warning(e)
    return {}