def METHOD_NAME(etherscan):
    count = 0
    def mock_requests_get(_url, timeout):  # pylint: disable=unused-argument
        nonlocal count
        if count == 0:
            response = (
                '{"status":"0","message":"NOTOK",'
                '"result":"Max rate limit reached, please use API Key for higher rate limit"}'
            )
        else:
            response = '{"jsonrpc":"2.0","id":1,"result":"0x1337"}'
        count += 1
        return MockResponse(200, response)
    return patch.object(etherscan.session, 'get', wraps=mock_requests_get)