def METHOD_NAME():
    sp = Saml2Client(config_file="servera_conf")
    with closing(Server(config_file="idp_all_conf")) as idp:
        srvs = sp.metadata.authn_query_service(idp.config.entityid)
        destination = srvs[0]["location"]
        authn_context = requested_authn_context(INTERNETPROTOCOLPASSWORD)
        subject = Subject(text="abc", name_id=NameID(format=NAMEID_FORMAT_TRANSIENT))
        _id, aq = sp.create_authn_query(subject, destination, authn_context)
        print(aq)
        assert isinstance(aq, AuthnQuery)