async def METHOD_NAME(
    async_client: AsyncClientWithRetry, aioresponses_mock: aioresponses_mock
):
    max_retries = 3
    for i in range(max_retries - 1):
        aioresponses_mock.get(
            "http://localhost:30678",
            exception=ClientConnectorError(
                mock.MagicMock(
                    code=500,
                ),
                ConnectionResetError(),
            ),
        )
        aioresponses_mock.get(
            "http://localhost:30678",
            status=200,
        )
    response = await async_client.get("http://localhost:30678")
    assert response.status == 200, "Expected to succeed after retries"
    assert (
        aioresponses_mock.called_times() == max_retries - 1
    ), f"Expected {max_retries - 1} retries"