def METHOD_NAME(new_api, old_api, query_params, args=[]):
    def is_list_identical(r1, r2):
        d1 = r1.to_dict()
        d2 = r2.to_dict()
        # skip comparing links so that the tests pass when galaxy_ng is installed
        assert d1["meta"] == d2["meta"]
        assert d1["data"] == d2["data"]
    c1 = new_api(ansible_bindings_client)
    c2 = old_api(ansible_bindings_client)
    args_new = [seeded_distribution.base_path, *args]
    # test pagination
    r1 = c1.list(*args_new, limit=1)
    r2 = c2.list(*args, limit=1)
    assert len(r1.data) == 1
    assert len(r2.data) == 1
    is_list_identical(r1, r2)
    # test query params
    r1 = c1.list(*args_new, **query_params)
    r2 = c2.list(*args, **query_params)
    is_list_identical(r1, r2)
    # test no query params
    r1 = c1.list(*args_new)
    r2 = c2.list(*args)
    is_list_identical(r1, r2)