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