def METHOD_NAME(response, version="1.0.0"):
    elem = response.xpath('/wps:Capabilities'
                          '/ows:ServiceIdentification'
                          '/ows:ServiceTypeVersion')
    found_version = elem[0].text
    assert version == found_version
    tmp = Path(tempfile.mkdtemp())
    with open(tmp / "out.xml", "wb") as out:
        out.writelines(response.response)