def done(item, done_type=None, max_tries=None, ttl=None):
    if done_type is None or done_type == _c.FSQ_SUCCESS:
        return success(item)
    return fail(item, fail_type=done_type, max_tries=max_tries, ttl=ttl)
Wrapper for any type of finish, successful, permanant failure or
dataset/ETHPy150Open axialmarket/fsq/fsq/done.py/done