async def METHOD_NAME(self, **kwargs):
    client = kwargs.pop("client")
    with pytest.raises(ValueError) as e:
        async with client:
            await client.begin_recognize_invoices_from_url(self.invoice_url_tiff)
    assert "Method 'begin_recognize_invoices_from_url' is only available for API version V2_1 and up" in str(e.value)