async def METHOD_NAME(self, **kwargs):
    formrecognizer_test_endpoint = kwargs.pop("formrecognizer_test_endpoint")
    formrecognizer_test_api_key = kwargs.pop("formrecognizer_test_api_key")
    client = FormRecognizerClient(formrecognizer_test_endpoint, AzureKeyCredential(formrecognizer_test_api_key))
    damaged_pdf = BytesIO(b"\x50\x44\x46\x55\x55\x55")  # doesn't match any magic file numbers
    with pytest.raises(ValueError):
        async with client:
            poller = await client.begin_recognize_receipts(
                damaged_pdf,
            )
            result = await poller.result()