def retry(times, func, *args, **kwargs):

    for i in range(times):
        try:
            return func(*args, **kwargs)
        except Exception:
            if i == times - 1:
                raise
POST /groups/<id>/link-assets.json (member)
dataset/ETHPy150Open openstack/rally/rally/common/utils.py/retry--crossover with--dataset/ETHPy150Open typepad/python-typepad-api/tests/test_typepad.py/TestGroup.test_5_POST_groups_id_link_assets