def METHOD_NAME(api, params, is_retrieving_more, repeat=True):
    response = api.get(f'/?{urlencode(params, doseq=True)}')
    assert response.status_code == 200
    response_json = response.json()
    data = response_json['data']
    if is_retrieving_more is not None:
        assert response_json['is_retrieving_more'] == is_retrieving_more
    if not response_json['is_retrieving_more']:
        return data
    if not repeat:
        return data
    while response_json['is_retrieving_more']:
        time.sleep(1)
        response = api.get(f'/?{urlencode(params, doseq=True)}')
        assert response.status_code == 200
        response_json = response.json()
        data = response_json['data']
    return data