def METHOD_NAME(self, **kwargs):
    client = kwargs.pop("client")
    with pytest.raises(TypeError):
        poller = client.begin_recognize_receipts(
            "https://badurl.jpg",
            content_type="application/json"
        )