async def METHOD_NAME(self, **kwargs):
    client = kwargs.pop("client")
    with open(self.receipt_jpg, "rb") as fd:
        my_file = fd.read()
    with pytest.raises(ValueError):
        async with client:
            poller = await client.begin_recognize_receipts(
                my_file,
                content_type="application/jpeg"
            )
            result = await poller.result()