def METHOD_NAME(self, simple_client, monkeypatch):
    call_counter = 0
    def mock_call_json(*args, **kwargs):
        nonlocal call_counter
        call_counter += 1
        if call_counter == 3:
            raise TencentCloudSDKException()
        raise socket.error()
    monkeypatch.setattr(AbstractClient, "call_json", mock_call_json)
    with pytest.raises(TencentCloudSDKException):
        simple_client.execute_query("test", {})
    assert call_counter == 3