def METHOD_NAME(requests_mock, test_response, status_code, expected):
    stream = Boards(config=MagicMock())
    url = "https://api.pinterest.com/v5/boards"
    requests_mock.get("https://api.pinterest.com/v5/boards", json=test_response, status_code=status_code)
    response = requests.get(url)
    result = stream.should_retry(response)
    assert result == expected