def METHOD_NAME(self, api, batch, mock_batch_responses):
    """Should fail with exception when any request returns error"""
    mock_batch_responses(
        [
            {
                "json": [
                    {"body": "{}", "code": 500, "headers": {}},
                    {"body": json.dumps({"name": "creative 1"}), "code": 200, "headers": {}},
                ],
            }
        ]
    )
    stream = SomeTestStream(api=api)
    requests = [FacebookRequest("node", "GET", "endpoint") for _ in range(5)]
    with pytest.raises(RuntimeError, match="Batch request failed with response:"):
        list(stream.execute_in_batch(requests))
    assert batch.add_request.call_count == len(requests)
    assert batch.execute.call_count == 1